|
@@ -165,6 +165,12 @@ Defaults to `60`. ZooKeeper's `maxClientCnxns`
|
|
|
|
|
|
> Limits the number of concurrent connections (at the socket level) that a single client, identified by IP address, may make to a single member of the ZooKeeper ensemble.
|
|
|
|
|
|
+### `ZOO_STANDALONE_ENABLED`
|
|
|
+
|
|
|
+Defaults to `false`. Zookeeper's [`standaloneEnabled`](http://zookeeper.apache.org/doc/trunk/zookeeperReconfig.html#sc_reconfig_standaloneEnabled)
|
|
|
+
|
|
|
+> Prior to 3.5.0, one could run ZooKeeper in Standalone mode or in a Distributed mode. These are separate implementation stacks, and switching between them during run time is not possible. By default (for backward compatibility) standaloneEnabled is set to true. The consequence of using this default is that if started with a single server the ensemble will not be allowed to grow, and if started with more than one server it will not be allowed to shrink to contain fewer than two participants.
|
|
|
+
|
|
|
## Replicated mode
|
|
|
|
|
|
Environment variables below are mandatory if you want to run Zookeeper in replicated mode.
|
|
@@ -177,6 +183,8 @@ The id must be unique within the ensemble and should have a value between 1 and
|
|
|
|
|
|
This variable allows you to specify a list of machines of the Zookeeper ensemble. Each entry has the form of `server.id=host:port:port`. Entries are separated with space. Do note that this variable will not have any effect if you start the container with a `/conf` directory that already contains the `zoo.cfg` file.
|
|
|
|
|
|
+In 3.5, the syntax of this has changed. Servers should be specified as such: `server.id=<address1>:<port1>:<port2>[:role];[<client port address>:]<client port>` [Zookeeper Dynamic Reconfiguration](http://zookeeper.apache.org/doc/trunk/zookeeperReconfig.html)
|
|
|
+
|
|
|
## Where to store data
|
|
|
|
|
|
This image is configured with volumes at `/data` and `/datalog` to hold the Zookeeper in-memory database snapshots and the transaction log of updates to the database, respectively.
|