This is an automated email from the ASF dual-hosted git repository. liuyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push: new 5c12be7 Update deploy-bare-metal.md (#12432) 5c12be7 is described below commit 5c12be7d1fdf74d02c247321ce4c982fc5157930 Author: Diego <diegobelot...@gmail.com> AuthorDate: Thu Nov 18 09:46:08 2021 +0100 Update deploy-bare-metal.md (#12432) * Update deploy-bare-metal.md no details for NAT. It is useful for distributed cluster. * Update site2/docs/deploy-bare-metal.md Co-authored-by: Anonymitaet <50226895+anonymit...@users.noreply.github.com> * Update deploy-bare-metal.md AS requested Co-authored-by: Anonymitaet <50226895+anonymit...@users.noreply.github.com> --- site2/docs/deploy-bare-metal.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/site2/docs/deploy-bare-metal.md b/site2/docs/deploy-bare-metal.md index 7f56cbf..fd33474 100644 --- a/site2/docs/deploy-bare-metal.md +++ b/site2/docs/deploy-bare-metal.md @@ -202,9 +202,17 @@ server.1=zk1.us-west.example.com:2888:3888 server.2=zk2.us-west.example.com:2888:3888 server.3=zk3.us-west.example.com:2888:3888 ``` - > If you only have one machine on which to deploy Pulsar, you only need to add > one server entry in the configuration file. +> If your machines are behind NAT use 0.0.0.0 as server entry for the local address. If the node use external IP in configuration for itself, behind NAT, zookeper service won't start because it tries to put a listener on an external ip that the linux box doesn't own. Using 0.0.0.0 start a listener on ALL ip, so that NAT network traffic can reach it. + +Example of configuration on _server.3_ +```properties +server.1=zk1.us-west.example.com:2888:3888 +server.2=zk2.us-west.example.com:2888:3888 +server.3=0.0.0.0:2888:3888 +``` + On each host, you need to specify the ID of the node in the `myid` file, which is in the `data/zookeeper` folder of each server by default (you can change the file location via the [`dataDir`](reference-configuration.md#zookeeper-dataDir) parameter). > See the [Multi-server setup > guide](https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#sc_zkMulitServerSetup) > in the ZooKeeper documentation for detailed information on `myid` and more.