> All other parameters are identical in both servers. I have added some data > from both node > but i am confused on which node data stores. Does it stores in both node > OR only stores in one node from where it has been added. I can retrieve data > from both nodes > but sometime can not. Not sure what's internally going on. Could you please > help me on this.
First of all, you should have same seed settings with both Node1 and Node2. There is no master node for Cassandra, so every node has to know others nodes. And to know which one stores data, I think it depends on your partitioner and replication factor settings. If you have settings in storage-conf.xml like below, your data stores at only one node because replication factor is 1, and it is distributed by MD5 hash(RandomPartitioner). ---- <ReplicationFactor>1</ReplicationFactor> <Partitioner>org.apache.cassandra.dht.RandomPartitioner</Partitioner> ---- Hope this helps. ----- Shinpei On Tue, May 4, 2010 at 10:23 PM, Mohammad Mamajiwala <mamajiw...@yahoo.com> wrote: > > Hi, > I am very new to Cassandra 0.6.1. I have setup the two node on two different > server. I would like to know how data distribution and replication work. > Node 1 IP:43.193.211.215 > Node 2 IP:43.193.213.160 > Node 1: Configuraiton > <Seeds> > <Seed>43.193.211.215</Seed> > </Seeds> > Node 2: Configuration > <Seeds> > <Seed>43.193.213.160</Seed> > <Seed>43.193.211.215</Seed> > </Seeds> > All other parameters are identical in both servers. I have added some data > from both node but i am confused on which node data stores. Does it stores in > both node OR only stores in one node from where it has been added. I can > retrieve data from both nodes but sometime can not. Not sure what's > internally going on. Could you please help me on this. > Thank You > Mohammad