Re: How to get the result from the closest node

2010-10-27 Thread Joe Alex
Thanks much, verifies what I thought it is doing when connecting to a random node. Will play with RackAware and DCQUORUM. Wanted to see if anybody else has a case where they want to connect to local Data Center always. A case where the Nodes are geographically apart like A (NY) and D (London). Wan

Re: How to get the result from the closest node

2010-10-26 Thread Aaron Morton
Lets start with the simple case, all nodes have the same proximity to each other.The client connects to a random node, called the coordinator. When a request is made the coordinator asynchronously sends it to all nodes that are a replica for the requested key. It waits for the response, and in the

How to get the result from the closest node

2010-10-26 Thread Joe Alex
Hi, I have Cassandra 0.6.6 running on 4 nodes with RF=2. Let say nodes A, B, C, D If I have clients A1, B1, C1, D1 connected to respective nodes what happens when A1 requests A for a key "100" for which D is responsible as per the Token. C has the second copy. As per the logs A1 requests A which