Re: The idea behind 'myid'

2009-09-30 Thread Flavio Junqueira
We just need a unique identifier for every server. If such an identifier magically appears somehow, then I believe our protocols will be equally happy. Now, a mechanism to assign ids would also have to take into consideration the group scheme we have for hierarchical quorums. To assign

Re: The idea behind 'myid'

2009-09-26 Thread Patrick Hunt
Not sure if you'll find this interesting but my zk configuration generator is available on github: http://github.com/phunt/zkconf zkconf.py will generate all of the configuration needed to run a ZooKeeper ensemble. I mainly use this tool for localhost based testing, but it can generate

Re: The idea behind 'myid'

2009-09-25 Thread Benjamin Reed
can you clarify what you are asking for? are you just looking for motivation? or are you trying to find out how to use it? the myid file just has the unique identifier (number) of the server in the cluster. that number is matched against the id in the configuration file. there isn't much to

Re: The idea behind 'myid'

2009-09-25 Thread Ørjan Horpestad
Hi Ben Well, im just wondering why the server's own unique IP-address isn't good enough as a valid identifyer; it strikes me to be a bit exhausting to manually set the id for each server in the cluster. Or maybe there is some details im not getting here :-) Regards, Orjan On Fri, Sep 25, 2009

Re: The idea behind 'myid'

2009-09-25 Thread Ted Dunning
A server doesn't have a unique IP address. Each interface can have 1 or more IP addresses and there can be many interfaces. Furthermore, an IP address can move from one machine to another. 2009/9/25 Ørjan Horpestad orj...@gmail.com Hi Ben Well, im just wondering why the server's own unique

Re: The idea behind 'myid'

2009-09-25 Thread Eric Bowman
Another way of doing it, though, would be to tell each instance which IP to use at startup. That way the config can be identical for all users, and there can be whatever logic is required to figure out the right IP address, in the place where logic executing anyhow. I do agree that maintaining

Re: The idea behind 'myid'

2009-09-25 Thread Benjamin Reed
you and ted are correct. the id gives zookeeper a stable identifier to use even if the ip address changes. if the ip address doesn't change, we could use that, but we didn't want to make that a built in assumption. if you really do have a rock solid ip address, you could make a wrapper startup

Re: The idea behind 'myid'

2009-09-25 Thread Eric Bowman
Benjamin Reed wrote: you and ted are correct. the id gives zookeeper a stable identifier to use even if the ip address changes. if the ip address doesn't change, we could use that, but we didn't want to make that a built in assumption. if you really do have a rock solid ip address, you could