You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by rash aroskar <ra...@gmail.com> on 2013/09/09 17:56:07 UTC
making sure 1 copy per availability zone(rack) using EC2Snitch
Hello,
I am planning my new cassandra 1.2.5 cluster with all nodes in single
region but divided among 2 availablity zones equally. I want to make sure
with replication factor 2 I get 1 copy in every availability zone. As per
my knowledge using placement strategy EC2Snitch should take care of this.
Is this correct? Do I need to specify any strategy options?
Thanks.
Rashmi
Re: making sure 1 copy per availability zone(rack) using EC2Snitch
Posted by rash aroskar <ra...@gmail.com>.
Thanks that is helpful.
On Tue, Sep 10, 2013 at 3:52 PM, Robert Coli <rc...@eventbrite.com> wrote:
> On Mon, Sep 9, 2013 at 11:21 AM, rash aroskar <ra...@gmail.com>wrote:
>
>> Are you suggesting deploying 1.2.9 only if using Cassandra "DC" outside
>> of EC2 or if I wish to use rack replication at all?
>>
>
> 1) use 1.2.9 no matter what, instead of 1.2.5
> 2) if only *ever* will have clusters in EC2, EC2Snitch is fine, but read
> and understand CASSANDRA-3810, especially if not using vnodes
> 3) if *ever* may have clusters outside of EC2 + inside EC2, use
> GossipingPropertyFileSnitch
> 4) if using vnodes, just create a cluster out of hosts with 50% in each AZ
> and you should be all set.
>
> =Rob
>
Re: making sure 1 copy per availability zone(rack) using EC2Snitch
Posted by Robert Coli <rc...@eventbrite.com>.
On Mon, Sep 9, 2013 at 11:21 AM, rash aroskar <ra...@gmail.com>wrote:
> Are you suggesting deploying 1.2.9 only if using Cassandra "DC" outside of
> EC2 or if I wish to use rack replication at all?
>
1) use 1.2.9 no matter what, instead of 1.2.5
2) if only *ever* will have clusters in EC2, EC2Snitch is fine, but read
and understand CASSANDRA-3810, especially if not using vnodes
3) if *ever* may have clusters outside of EC2 + inside EC2, use
GossipingPropertyFileSnitch
4) if using vnodes, just create a cluster out of hosts with 50% in each AZ
and you should be all set.
=Rob
Re: making sure 1 copy per availability zone(rack) using EC2Snitch
Posted by rash aroskar <ra...@gmail.com>.
Thanks for quick response Rob.
Are you suggesting deploying 1.2.9 only if using Cassandra "DC" outside of
EC2 or if I wish to use rack replication at all?
On Mon, Sep 9, 2013 at 12:43 PM, Robert Coli <rc...@eventbrite.com> wrote:
> On Mon, Sep 9, 2013 at 8:56 AM, rash aroskar <ra...@gmail.com>wrote:
>
>> I am planning my new cassandra 1.2.5 cluster with all nodes in single
>> region but divided among 2 availablity zones equally. I want to make sure
>> with replication factor 2 I get 1 copy in every availability zone. As per
>> my knowledge using placement strategy EC2Snitch should take care of this.
>> Is this correct? Do I need to specify any strategy options?
>>
>
> https://issues.apache.org/jira/browse/CASSANDRA-3810
>
> Has background on how one must configure all rack aware snitches.
>
> If you may ever have a Cassandra "DC" outside of EC2, for example for
> Disaster Recovery, use GossipingPropertyFileSnitch.
>
> Also, deploy on 1.2.9, not 1.2.5.
>
> =Rob
>
Re: making sure 1 copy per availability zone(rack) using EC2Snitch
Posted by Robert Coli <rc...@eventbrite.com>.
On Mon, Sep 9, 2013 at 8:56 AM, rash aroskar <ra...@gmail.com>wrote:
> I am planning my new cassandra 1.2.5 cluster with all nodes in single
> region but divided among 2 availablity zones equally. I want to make sure
> with replication factor 2 I get 1 copy in every availability zone. As per
> my knowledge using placement strategy EC2Snitch should take care of this.
> Is this correct? Do I need to specify any strategy options?
>
https://issues.apache.org/jira/browse/CASSANDRA-3810
Has background on how one must configure all rack aware snitches.
If you may ever have a Cassandra "DC" outside of EC2, for example for
Disaster Recovery, use GossipingPropertyFileSnitch.
Also, deploy on 1.2.9, not 1.2.5.
=Rob