sjsu-cmpe / vyuudha

Vyuudha - A clean room implementation of a distributed storage middleware for education and research.
5 stars 2 forks source link

How to implement hinted handoff? #12

Open utsengar opened 13 years ago

utsengar commented 13 years ago
  1. When to trigger the handoff?
  2. How to move the data? (all at once, sync or async?)
  3. Who to hintoff? consistent manner, next node and random node?

http://wiki.basho.com/Riak-Glossary.html

utsengar commented 13 years ago

So, as per last discussion:

  1. The middle always assumes that a node is down temporarily. So, when ever a client gets timeout/null/exception from node1, it should start routing request to the next node2.
  2. You don't. The replication is taking care of keeping the data on node2's replication store. But, node2 keeps checking the status of node1, once it's up it send the diff of the new data to node1. (we can use rsync algo here)
  3. Lame question. It's always the next node. Better answer: Handoff to the nodes where you are replication. So, this answer will be depended on the ReplicationInterface.java

How are we implementing the ReplicationInterface?