Re: What happens when a server loses all its state?

2008-12-17 Thread Thomas Vinod Johnson
Mahadev Konar wrote: Hi Thomas, Here is what would happen in the scenario you mentioned. Great - thanks Mahadev. Not to drag this on more than necessary, please bear with me for one more example of 'amnesia' that comes to mind. I have a set of ZooKeeper servers A, B, C. - C is currently no

RE: What happens when a server loses all its state?

2008-12-17 Thread Benjamin Reed
Thomas, in the scenario you give you have two simultaneous failures with 3 nodes, so it will not recover correctly. A is failed because it is not up. B has failed because it lost all its data. it would be good for ZooKeeper to not come up in that scenario. perhaps what we need is something si

RE: What happens when a server loses all its state?

2008-12-17 Thread Krishna Sankar (ksankar)
Just as a supporting note, from what I read, to support n simultaneous failures we need 2n+1 nodes. In this case, we need 5 nodes to operate correctly. Might be a good idea to capture this formula and if more than n failures occur, write the appropriate flags which can then be used for the right re

Re: What happens when a server loses all its state?

2008-12-17 Thread Thomas Vinod Johnson
Thanks for all the responses. Benjamin Reed wrote: Thomas, in the scenario you give you have two simultaneous failures with 3 nodes, so it will not recover correctly. A is failed because it is not up. B has failed because it lost all its data. it would be good for ZooKeeper to not come up in