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

Suport auto-sync member list for an etcd conn instance #41

Merged

Conversation

belltoy
Copy link
Contributor

@belltoy belltoy commented Jan 19, 2022

This impl uses auto_sync_interval_ms option to enabled (disabled default) auto sync member list via etcd v3 API. And also note, the auto_sync only works with connect_all mode.

This feature has been tested for etcd node restarts, member removed/added, add new learner members, promoted learners scenarios.

src/eetcd_conn.erl Outdated Show resolved Hide resolved
src/eetcd_conn.erl Outdated Show resolved Hide resolved
@belltoy belltoy force-pushed the feature/auto-sync-memberlist branch from b60dc7a to f0b5ec8 Compare January 19, 2022 15:15
@zhongwencool zhongwencool merged commit 527a931 into zhongwencool:master Feb 11, 2022
gilbertwong96 added a commit to gilbertwong96/eetcd that referenced this pull request Aug 9, 2022
The tuple `Freeze` is different from the `Members`, which is the root cause why
reconnect mechanism out of work in `connect_all` mode.

This bug is introduced in zhongwencool#41.
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.

3 participants