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

Improve replicated adapter to ensure better consistency across the nodes #99

Closed
cabol opened this issue Jan 5, 2021 · 1 comment
Closed

Comments

@cabol
Copy link
Owner

cabol commented Jan 5, 2021

Improvements

  • When a new node joined, it is required to fetch the cached data from any of the cluster nodes. Since in a replicated topology all nodes should have the same data, it is important to ensure all write operations are stopped during the synchronization process avoiding possible inconsistencies. To do so, set a global lock across the cluster when a replicated cache node is joined and the synchronization starts, and then delete it when it ends.
  • When using a generational cache as the primary store, ensure the data is the same across all cluster nodes during the synchronization process.
@cabol
Copy link
Owner Author

cabol commented Jan 5, 2021

This also should help to have better consistency for cache stats, which was mentioned in issue #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant