-
Notifications
You must be signed in to change notification settings - Fork 299
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
Failover to closest host #20
Comments
Being as configuration happy as I am, I would like to have some mechanism of defining failover groups as hosts are requested/added to the pool. Not sure how that would work, but I think being declarative would be nice, as I know where all my iron is. A default similar to cassandra's EndPointSnitch xor'ing IP addresses would be good though. |
It would be good to have some intelligence in selecting hosts. Keeping track of response times for example. A Pluggable approach to host selection strategies would be good. |
@cheetah100 I think we're on the same page, it's just that this subject was never brought up in the priority high enough. |
LoadBalancingPolicy is now available as an extension point. |
And the Phi accrual policy is available as well. Closing the ticket. |
When failing over the the next host, if there's a long list of available hosts, any host may be chosen by the client as a failed over host. This could mean that the host is in a different datacenter.
An improvement this this is to choose the host based in shortest IP distance, e.g. prefer host in the same subnet.
Even better is a pluggable EndPointSnitch
The text was updated successfully, but these errors were encountered: