|
From: Doug C. <cu...@ap...> - 2008-04-23 00:00:51
|
Ning Li wrote: >> I think each node can determine that on its own at startup. It >> >> 1. Posts its range and log start number. >> 2. Waits a bit, so all other nodes have had a chance to post their data. >> 3. Decides if its index is valid, by checking all overlapping node's log >> start numbers & compares them with the last sync'd log number to see if >> they've compacted their log. >> 4. Starts syncing with its neighbors. > > Data in Zookeeper is persistent, right? So there are records in Zookeeper > on the range, log start number and log start numbers on neighbors > of a node. So what does it mean if, at startup, a node's posted numbers > are newer or older than those in Zookeeper? Can the data in Zookeeper > help during startup? Or do we discard those records in Zookeeper? Zookeeper can store data that's persistent or that disappears when a node disappears. I think the most natural representation in Zookeeper would be to make the live ring to be represented by ephemeral files. Doug |