reviewed class org.apache.zookeeper.server.quorum.QuorumCnxManager.Listener,
and I found this:
ss = ServerSocketChannel.open();
int port =
self.quorumPeers.get(self.getId()).electionAddr.getPort();
LOG.info("My election bind port: " + port);
ss.socket().setReuseAddress(true);
ss.socket().bind(new InetSocketAddress(port));
should I fire a bug report?
On Wed, Jun 15, 2011 at 11:33 AM, Isaac <[email protected]> wrote:
> why zookeeper bind 0.0.0.0 at miti-homed server?
>
> $ netstat -lnp | grep 99
> ...
> tcp 0 0 0.0.0.0:9900 0.0.0.0:* LISTEN
> 16536/java
> tcp 0 0 0.0.0.0:9910 0.0.0.0:* LISTEN
> 16536/java
> ...
>
> i deploy 3 zookeeper on the same server for test.
> zoo.cfg
> ------------------------------
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/data/zookeeper/data
> # the port at which the clients will connect
> clientPort=10000
> clientPortAddress=172.27.31.48
> server.1=172.27.31.48:9900:9910
> server.2=172.27.31.48:9901:9911
> server.3=172.27.31.48:9902:9912
>
>