Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

Xsxdot
Copy link

@Xsxdot Xsxdot commented Mar 22, 2020

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

Copy link
Owner

@withlin withlin left a comment

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