You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,13 @@ ensemble:
202
202
though about a few here:
203
203
Every machine that is part of the ZooKeeper ensemble should know
204
204
about every other machine in the ensemble. You accomplish this with
205
-
the series of lines of the form **server.id=host:port:port**. The parameters **host** and **port** are straightforward. You attribute the
205
+
the series of lines of the form **server.id=host:port:port**.
206
+
(The parameters **host** and **port** are straightforward, for each server
207
+
you need to specify first a Quorum port then a dedicated port for ZooKeeper leader
208
+
election). Since ZooKeeper 3.6.0 you can also [specify multiple addresses](#id_multi_address)
209
+
for each ZooKeeper server instance (this can increase availability when multiple physical
210
+
network interfaces can be used parallel in the cluster).
211
+
You attribute the
206
212
server id to each machine by creating a file named
207
213
*myid*, one for each server, which resides in
208
214
that server's data directory, as specified by the configuration file
@@ -1042,7 +1048,7 @@ of servers -- that is, when deploying clusters of servers.
1042
1048
>Turning on leader selection is highly recommended when
1043
1049
you have more than three ZooKeeper servers in an ensemble.
1044
1050
1045
-
**server.x=[hostname]:nnnnn[:nnnnn], etc* :
1051
+
**server.x=[hostname]:nnnnn[:nnnnn] etc* :
1046
1052
(No Java system property)
1047
1053
servers making up the ZooKeeper ensemble. When the server
1048
1054
starts up, it determines which server it is by looking for the
@@ -1057,6 +1063,21 @@ of servers -- that is, when deploying clusters of servers.
1057
1063
The first followers use to connect to the leader, and the second is for
1058
1064
leader election. If you want to test multiple servers on a single machine, then
1059
1065
different ports can be used for each server.
1066
+
1067
+
1068
+
<aname="id_multi_address"></a>
1069
+
Since ZooKeeper 3.6.0 it is possible to specify **multiple addresses** for each
1070
+
ZooKeeper server (see [ZOOKEEPER-3188](https://issues.apache.org/jira/projects/ZOOKEEPER/issues/ZOOKEEPER-3188)).
1071
+
This helps to increase availability and adds network level
1072
+
resiliency to ZooKeeper. When multiple physical network interfaces are used
1073
+
for the servers, ZooKeeper is able to bind on all interfaces and runtime switching
1074
+
to a working interface in case a network error. The different addresses can be specified
1075
+
in the config using a pipe ('|') character. A valid configuration using multiple addresses looks like:
Since ZooKeeper 3.6.0 it is possible to specify multiple addresses for each
119
+
ZooKeeper server (see [ZOOKEEPER-3188](https://issues.apache.org/jira/projects/ZOOKEEPER/issues/ZOOKEEPER-3188)).
120
+
This helps to increase availability and adds network level
121
+
resiliency to ZooKeeper. When multiple physical network interfaces are used
122
+
for the servers, ZooKeeper is able to bind on all interfaces and runtime switching
123
+
to a working interface in case a network error. The different addresses can be
124
+
specified in the config using a pipe ('|') character.
125
+
126
+
Examples for a valid configurations using multiple addresses:
0 commit comments