GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - L-Angel/tunnel: 分布式高可用binlog数据同步组件

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
admin-web
admin-web
 
 
admin/handler
admin/handler
 
 
bootstrap
bootstrap
 
 
cfg
cfg
 
 
document
document
 
 
election
election
 
 
log
log
 
 
meta
meta
 
 
registry
registry
 
 
worker
worker
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
tunnel.yml.template
tunnel.yml.template
 
 

Repository files navigation

Tunnel

基于binlog的数据同步组件

产品介绍

系统部署架构

部署架构

产品特性

  • 集群采用 cluster-group-worker 三级架构部署模式,支持集群无限扩容,以Group为最小运维管理单元,多机房、多实例灵活部署。
  • 采用 master-slave 部署模式,基于zk的分布式协调机制,故障自动转移、任务自动恢复,支持Task维度高可用。

注册中心节点设计

-------
  |--tunnel
  |     |
  |     |--[cluster_code]
  |     |     |
  |     |     |--[group_code]
  |     |     |     |--election
  |     |     |     |     |(leader IP)  
  |     |     |     |
  |     |     |     |--nodes
  |     |     |     |     |--Node Ip1
  |     |     |     |     |--Node Ip2
  |     |     |     |     |--Node Ip3
  |     |     |     |     
  |     |     |     |--task
  |     |     |     |     |
  |     |     |     |     |-task_1
  |     |     |     |     |     |--position
  |     |     |     |     |          |(byte data,mysql Position数据)
  |     |     |     |     |
  |     |     |     |     |-task_2
  |     |     |     |     |     |--position
  |     |     |     |     |          |(byte data,mysql Position数据)
  |     |     |

数据模式

  • UPDATE
{
  "schema": "",
  "table": "xxx",
  "action": "update",
  "rows": [
    [
      {
        "column": "xx",
        "before": "xx",
        "after": "xx"
      },
      {
        "column": "xx2",
        "before": "xx",
        "after": "xx"
      }
    ],
    [
      {
        "column": "xx",
        "before": "xx",
        "after": "xx"
      },
      {
        "column": "xx2",
        "before": "xx",
        "after": "xx"
      }
    ]
  ]
}
  • INSERT
{
	"schema": "",
	"table": "xxx",
	"action": "insert",
	"rows": [
		[{
			"column": "xx",
			"value": "xx"
		}, {
			"column": "xx2",
			"value": "xx"
		}],
		[{
			"column": "xx",
			"value": "xx"
		}, {
			"column": "xx2",
			"value": "xx"
		}]
	]
}
  • DELETE
{
	"schema": "",
	"table": "xxx",
	"action": "delete",
	"rows": [
		[{
			"column": "xx",
			"value": "xx"
		}, {
			"column": "xx2",
			"value": "xx"
		}],
		[{
			"column": "xx",
			"value": "xx"
		}, {
			"column": "xx2",
			"value": "xx"
		}]
	]
}

Contact ME

  • Slack #Tunnel
  • Mail : [email protected]

About

分布式高可用binlog数据同步组件

Resources

Readme
Apache-2.0 license
Activity

Stars

2 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.