On Wed, Jan 5, 2011 at 3:37 AM, Narendra Sharma
<narendra.sha...@gmail.com> wrote:
> What I am looking for is:
> 1. Some way to send requests for keys whose token fall between 0-25 to B and
> never to C even though C will have the data due to it being replica of B.
> 2. Only when B is down or not reachable, the request should go to C.
> 3. Once the requests start going to C, they should continue unless C is down
> and in which case the requests should then go to B.
>
> My understanding is that SimpleSnitch should fit here except for the
> enforcing #3 above.

Right, with the caveat that you'll probably want to set the dynamic
snitch badness threshold to allow switching to B even if C merely gets
overloaded rather than completely down.  The alternative is disabling
the dynamic snitch entirely.

> will SimpleSnitch come into
> picture if the request from client reaches node C directly?

Yes.

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Reply via email to