Enhance zookeeper documentation (#795)

* Enhance zookeeper documentation
This commit is contained in:
Elisey Zanko 2017-01-10 00:00:29 +05:00 committed by yosifkit
parent a588bd14a5
commit 6fa4cafc3f
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ This image includes `EXPOSE 2181 2888 3888` (the zookeeper client port, follower
## %%COMPOSE%%
This will start Zookeeper in [replicated mode](http://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_RunningReplicatedZooKeeper). Run `docker-compose up` and wait for it to initialize completely. Run `docker-compose ps` to figure out exposed ports.
This will start Zookeeper in [replicated mode](http://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_RunningReplicatedZooKeeper). Run `docker-compose up` and wait for it to initialize completely. Ports `2181-2183` will be exposed.
> Please be aware that setting up multiple servers on a single machine will not create any redundancy. If something were to happen which caused the machine to die, all of the zookeeper servers would be offline. Full redundancy requires that each server have its own machine. It must be a completely separate physical server. Multiple virtual machines on the same physical host are still vulnerable to the complete failure of that host.
@ -76,4 +76,4 @@ This variable allows you to specify a list of machines of the Zookeeper ensemble
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.
> Be careful where you put the transaction log. A dedicated transaction log device is key to consistent good performance. Putting the log on a busy device will adversely effect performance.
> Be careful where you put the transaction log. A dedicated transaction log device is key to consistent good performance. Putting the log on a busy device will adversely affect performance.

View File

@ -4,7 +4,7 @@ services:
image: zookeeper
restart: always
ports:
- 2181
- 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
@ -13,7 +13,7 @@ services:
image: zookeeper
restart: always
ports:
- 2181
- 2182:2181
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
@ -22,7 +22,7 @@ services:
image: zookeeper
restart: always
ports:
- 2181
- 2183:2181
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888