Thanks a lot. I set RF=2 at storage-conf.xml
How to set "write and read with QUORUM"? They are run physically separate hw (But same since they are VM) ----- Original Message ---- From: Per Olesen <p...@trifork.com> To: "user@cassandra.apache.org" <user@cassandra.apache.org> Sent: Wed, June 9, 2010 2:20:43 PM Subject: Re: Quick help on Cassandra please: cluster access and performance Hi Wei, > 1) I found this: the 2 node is slower (30%) than one node in both of write > and select. Is this normal? (In theory, 2 nodes should be faster than one?). > I monitroing the 2 nodes and found tehy are working and flush often (so, 2 > nodes works) Which consistency level are you using for read and write and what is your replication factor set to? If you have RF=2 and write and read with QUORUM, cassandra need to do more work on each operation (but you get replicas in return). Also: Are you running both nodes on the same host / same disks or on physically separate hw? > 2)I am using Java. When I connect to nodes of Cassandra cluster, I am > using one node's IP address as connection. Is this OK? Should I use the > cluster name (Like Oracle RAC)? You are doing the correct thing. You just connect to any node in the cluster that is up. /Per