Skip to content

重写了ClusterCanalConnector,增加client高可用#50

Merged
withlin merged 3 commits into
withlin:masterfrom
Xsxdot:master
Mar 23, 2020
Merged

重写了ClusterCanalConnector,增加client高可用#50
withlin merged 3 commits into
withlin:masterfrom
Xsxdot:master

Conversation

@Xsxdot

@Xsxdot Xsxdot commented Mar 22, 2020

Copy link
Copy Markdown
  1. 重写了ClusterCanalConnector
  2. 集群模式下在canal-server挂掉时,自动切换到正在运行的server上
  3. 集群模式下有多个client时,通过zk保证了只有一个client在运行,其他client作为冷备,当正在运行的client挂掉时,其他client会有一个继续运行。但是此时可能会有重复消息,注意幂等性校验。
  4. 第2、3条不需要额外干涉。

@withlin withlin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@withlin withlin merged commit d552e74 into withlin:master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants