Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Robert Coli
On Wed, Feb 12, 2014 at 1:14 PM, Ben Bromhead wrote: > An alternate method would be to define the zones as data centres and then > you could leverage existing DC aware policies (We've never tried this > though). > https://issues.apache.org/jira/browse/CASSANDRA-3810 =Rob

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Brian Tarbox
We're definitely using all private IPs. I guess my question really is: with repl=3 and quorum operations I know we're going to push/pull bits across the various AZs within us-east-1. So, does having the client start the conversation with a server in the same AZ save us anything? On Wed, Feb 12,

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Ben Bromhead
0.01/G between zones irrespective of IP is correct. As for your original question, depending on the driver you are using you could write a custom co-ordinator node selection policy. For example if you are using the Datastax driver you would extend http://www.datastax.com/drivers/java/2.0/apidoc

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Andrey Ilinykh
I think you are mistaken. It is true for the same zone. between zones 0.01/G On Wed, Feb 12, 2014 at 12:17 PM, Russell Bradberry wrote: > Not when using private IP addresses. That pricing *ONLY *applies if you > are using the public interface or EIP/ENI. If you use the private IP > addresses t

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Russell Bradberry
Not when using private IP addresses.  That pricing ONLY applies if you are using the public interface or EIP/ENI.  If you use the private IP addresses there is no cost associated. On February 12, 2014 at 3:13:58 PM, William Oberman (ober...@civicscience.com) wrote: Same region, cross zone tr

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread William Oberman
Same region, cross zone transfer is $0.01 / GB (see http://aws.amazon.com/ec2/pricing/, Data Transfer section). On Wed, Feb 12, 2014 at 3:04 PM, Russell Bradberry wrote: > Cross zone data transfer does not cost any extra money. > > LOCAL_QUORUM = QUORUM if all 6 servers are located in the same

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Russell Bradberry
Cross zone data transfer does not cost any extra money.  LOCAL_QUORUM = QUORUM if all 6 servers are located in the same logical datacenter.   Ensure your clients are connecting to either the local IP or the AWS hostname that is a CNAME to the local ip from within AWS.  If you connect to the pub

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Yogi Nerella
Also, may be you need to check the read consistency to local_quorum, otherwise the servers still try to read the data from all other data centers. I can understand the latency, but I cant understand how it would save money? The amount of data transferred from the AWS server to the client should

Re: in AWS is it worth trying to talk to a server in the same zone as your client?

2014-02-12 Thread Andrey Ilinykh
yes, sure. Taking data from the same zone will reduce latency and save you some money. On Wed, Feb 12, 2014 at 10:13 AM, Brian Tarbox wrote: > We're running a C* cluster with 6 servers spread across the four us-east1 > zones. > > We also spread our clients (hundreds of them) across the four zone