On Mon, Feb 1, 2010 at 7:38 PM, Jonathan Ellis <jbel...@gmail.com> wrote:
> No.  Thrift is just an RPC mechanism.  Whether RRDNS, software or
> hardware load balancing, or client-based failover like Gary describes
> is best is not a one-size-fits-all answer.
Everyone who uses Cassandra would need to implement Loadbalancing and
failover. Some may do it right and some may do it wrong .Because this
solution is going to be cassandra specific ,  you may not find any
publicly available libraries to help you out.

Ideally, the client would be a a Thrift API wrapper, which
automatically does Loadbalancing and failover . This definitely may
not be the only solution. But this can be one which may not need any
external RRDNS.

>
> 2010/2/1 Noble Paul നോബിള്‍  नोब्ळ् <noble.p...@corp.aol.com>:
>> is it worth adding this feature to the standard java client?
>>
>> On Mon, Feb 1, 2010 at 7:28 PM, Gary Dusbabek <gdusba...@gmail.com> wrote:
>>> One approach is to discover what other nodes there are before any of
>>> them fail.  Then when you detect failure, you can connect to a
>>> different node that is (hopefully) still responding.
>>>
>>> There is an API call that allows you get get a list of all the nodes:
>>> client.get_string_property("token map"), which returns a JSON list of
>>> the node ring.
>>>
>>> I hope that helps.
>>>
>>> Gary.
>>>
>>> 2010/2/1 Noble Paul നോബിള്‍  नोब्ळ् <noble.p...@gmail.com>:
>>>> The cassandra client (thift client) is started up with the host:post
>>>> of a single cassandra node.
>>>>
>>>> * What happens if that node fails?
>>>> * Does it mean that all the operations go through the same node?
>>>>
>>>> --Noble
>>>>
>>>
>>
>>
>>
>> --
>> -----------------------------------------------------
>> Noble Paul | Systems Architect| AOL | http://aol.com
>>
>



-- 
-----------------------------------------------------
Noble Paul | Systems Architect| AOL | http://aol.com

Reply via email to