hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Stribling <st...@nicira.com>
Subject maximum myid?
Date Thu, 02 Sep 2010 20:45:11 GMT
Can the server id in the myid field be any valid long value?  I'm 
interested in generating, rather than pre-assigning, a unique id for 
every server, so my current plan is to convert the server's IP address 
into a 32-bit integer, and use the decimal, ASCII representation of that 
integer for the myid field.  Can anyone think of a reason not to do 
this?  For example, if the code ever uses the id as an index into an 
array, that would probably be bad.

Thanks,

Jeremy


Mime
View raw message