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

Cluster connection failover when cluster topology changes #97

Closed
mp911de opened this issue Jul 3, 2015 · 2 comments
Closed

Cluster connection failover when cluster topology changes #97

mp911de opened this issue Jul 3, 2015 · 2 comments
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented Jul 3, 2015

lettuce obtains its cluster view once upon starting a connection. There is no dynamic update but updates to the cluster view are on demand possible. Connections which get disconnected in clustered operations keep their queued and buffered commands until the whole cluster connection is shut down and these commands are lots from the execution perspective.

Expected behavior:

  • Possibility to obtain dynamic topology changes
  • Update the cluster view while clustered operations
  • Failover of queued and buffered commands according to command reliability docs
@mp911de mp911de added this to the Lettuce 3.3 milestone Jul 3, 2015
@mp911de
Copy link
Collaborator Author

mp911de commented Jul 19, 2015

Topology updates can be activated using ClusterClientOptions by setting refreshClusterView to true

The refresh happens in the background and a validation/activation is performed every time the partitions are loaded using RedisClusterClient#loadPartitions. The method is triggered on the first connection and can be called directly

mp911de added a commit that referenced this issue Jul 19, 2015
- Provide ClusterClientOptions to enable/disable topology refresh
- Implement ASK redirection
- Prevent connections to other nodes than the partion view provides (exact check)
- Polishing
mp911de added a commit that referenced this issue Jul 19, 2015
- Provide ClusterClientOptions to enable/disable topology refresh
- Implement ASK redirection
- Prevent connections to other nodes than the partion view provides (exact check)
- Polishing
@mp911de
Copy link
Collaborator Author

mp911de commented Jul 20, 2015

Done.

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

No branches or pull requests

1 participant