Re: Question about local reads with multiple data centers

2014-02-06 Thread Chris Burroughs
On 01/29/2014 08:07 PM, Donald Smith wrote: My question: will the read process try to read first locally from the datacenter DC2 I specified in its connection string? I presume so. (I doubt that it uses the client's IP address to decide which datacenter is closer. And I am unaware of anot

RE: Question about local reads with multiple data centers

2014-01-30 Thread Donald Smith
n Sands [mailto:duncan.sa...@gmail.com] Sent: Thursday, January 30, 2014 1:19 AM To: user@cassandra.apache.org Subject: Re: Question about local reads with multiple data centers Hi Donald, which driver are you using? With the datastax python driver you need to use the DCAwareRoundRobinPolicy f

Re: Question about local reads with multiple data centers

2014-01-30 Thread Duncan Sands
Hi Donald, which driver are you using? With the datastax python driver you need to use the DCAwareRoundRobinPolicy for the load balancing policy if you want the driver to distinguish between your data centres, otherwise by default it round robins robins requests amongst all nodes regardless of

Question about local reads with multiple data centers

2014-01-29 Thread Donald Smith
We have two datacenters, DC1 and DC2 in our test cluster. Our write process uses a connection string with just the two hosts in DC1. Our read process uses a connection string just with the two hosts in DC2. We use a PropertyFileSnitch and a property file that 'DC1':2, 'DC2':1 between data cen