Hi, The id uniquely identifies a server during its lifetime. IP and port can be change during runtime but the id remains.
Also theoretically its possible for multiple servers to have the same IP and port, although probably no one will define it like that :) Alex On Thu, Dec 18, 2014 at 12:47 PM, Ben Hsu <[email protected]> wrote: > > Hello > > A friend at work asked me why the myid file is needed. Can't zookeeper > divine which node a request is coming from based on the source IP and port? >
