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

Failover to closest host #20

Closed
rantav opened this issue Apr 3, 2010 · 5 comments
Closed

Failover to closest host #20

rantav opened this issue Apr 3, 2010 · 5 comments

Comments

@rantav
Copy link
Collaborator

rantav commented Apr 3, 2010

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

@zznate
Copy link
Collaborator

zznate commented Apr 7, 2010

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.

@cheetah100
Copy link

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.

@rantav
Copy link
Collaborator Author

rantav commented Oct 10, 2010

@cheetah100 I think we're on the same page, it's just that this subject was never brought up in the priority high enough.
Now, however, I think Nate will have a chance to spend some time rethinking of this and coming up with a better implementation (I only wish I had the time for that...)

@zznate
Copy link
Collaborator

zznate commented Dec 14, 2010

LoadBalancingPolicy is now available as an extension point.

@patricioe
Copy link
Collaborator

And the Phi accrual policy is available as well.

Closing the ticket.

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

4 participants