cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B. Todd Burruss" <>
Subject Re: Dividing the client load between machines in Cassandra
Date Tue, 16 Mar 2010 21:55:17 GMT
if you choose #3 - get_string_property("token map") - keep in mind that 
the IPs returned from this call are the IPs used for "ListenAddress" 
param in storage-conf.xml.  In my case we have two NICs and I set this 
to be an IP that is only for "node to node" communication.  The 
"ThriftAddress" param is the one i really want.  maybe this has been 
changed, "fixed" ;), haven't tested in a while.

Jonathan Ellis wrote:
> On Tue, Mar 16, 2010 at 4:30 PM, Sonny Heer <> wrote:
>> How can I accomplish this?
>> The way I'm doing it now it is creating a TSocket connection using a
>> static IP of one of the boxes on Cassandra:
>>        TTransport tr = new TSocket(host, port.intValue());
>>        TProtocol proto = new TBinaryProtocol(tr);
>>        Cassandra.Client client = new Cassandra.Client(proto);
>> With a larger cluster I would imagine there is another preferred
>> solution with no single point of failure (e.g. that one box  goes
>> down).

View raw message