Re: Replication Factor and Consistency Level Confusion

2012-12-20 Thread aaron morton
>> this actually what is happening, how is it possible to ever have a >> node-failure resiliant cassandra cluster? Background http://thelastpickle.com/2011/06/13/Down-For-Me/ > I would suggest double-checking your test setup; also, make sure you > use the same row keys every time (if this is not

Re: Replication Factor and Consistency Level Confusion

2012-12-20 Thread Tristan Seligmann
On Thu, Dec 20, 2012 at 11:26 AM, Vasileios Vlachos wrote: > Initially we were thinking the same thing, that an explanation would > be that the "wrong" node could be down, but then isn't this something > that hinted handoff sorts out? If a node is partitioned from the rest of the cluster (ie. the

Re: Replication Factor and Consistency Level Confusion

2012-12-20 Thread Henrik Schröder
Don't run with a replication factor of 2, use 3 instead, and do all reads and writes using quorum consistency. That way, if a single node is down, all your operations will complete. In fact, if every third node is down, you'll still be fine and able to handle all requests. However, if two adjacen

Re: Replication Factor and Consistency Level Confusion

2012-12-20 Thread Vasileios Vlachos
liche Nachricht- > Von: Vasileios Vlachos [mailto:vasileiosvlac...@gmail.com] > Gesendet: Mittwoch, 19. Dezember 2012 17:07 > An: user@cassandra.apache.org > Betreff: Replication Factor and Consistency Level Confusion > > Hello All, > > We have a 3-node cluster and we created a keys

AW: Replication Factor and Consistency Level Confusion

2012-12-19 Thread Roland Gude
range 6-10 with consistency TWO will fail (C is down and it is the replica for this range) I hope this explains it. -Ursprüngliche Nachricht- Von: Vasileios Vlachos [mailto:vasileiosvlac...@gmail.com] Gesendet: Mittwoch, 19. Dezember 2012 17:07 An: user@cassandra.apache.org Betreff: Replica

Re: Replication Factor and Consistency Level Confusion

2012-12-19 Thread Hiller, Dean
Ps, you may be getting a bit confused by the way. Just think if you have a 10 node cluster and one node is down and you do CL=2Š..if the node that is down is where your data goes, yes, you will fail. If you do CL=quorum and RF=3 you can tolerate one node being downŠIf you use astyanax, I think t

Re: Replication Factor and Consistency Level Confusion

2012-12-19 Thread Hiller, Dean
ANY: worked (expected...) ONE: worked (expected...) TWO: did not work (WHT???) This is expected sometimes and sometimes not. It depends on the 2 of the 3 nodes that have the data. Since you have one node down, that might be the one where that data goes ;). THREE: did not work (expected...)

Replication Factor and Consistency Level Confusion

2012-12-19 Thread Vasileios Vlachos
Hello All, We have a 3-node cluster and we created a keyspace (say Test_1) with Replication Factor set to 3. I know is not great but we wanted to test different behaviors. So, we created a Column Family (say cf_1) and we tried writing something with Consistency Level ANY, ONE, TWO, THREE, QUORUM a