Skip to content

Commit 08aa4de

Browse files
Run update.sh
1 parent 6fa4caf commit 08aa4de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

zookeeper/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
image: zookeeper
4343
restart: always
4444
ports:
45-
- 2181
45+
- 2181:2181
4646
environment:
4747
ZOO_MY_ID: 1
4848
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
@@ -51,7 +51,7 @@ services:
5151
image: zookeeper
5252
restart: always
5353
ports:
54-
- 2181
54+
- 2182:2181
5555
environment:
5656
ZOO_MY_ID: 2
5757
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
@@ -60,13 +60,13 @@ services:
6060
image: zookeeper
6161
restart: always
6262
ports:
63-
- 2181
63+
- 2183:2181
6464
environment:
6565
ZOO_MY_ID: 3
6666
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
6767
```
6868
69-
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.
69+
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.
7070

7171
> 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.
7272

@@ -118,7 +118,7 @@ This variable allows you to specify a list of machines of the Zookeeper ensemble
118118

119119
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.
120120

121-
> 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.
121+
> 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.
122122

123123
# License
124124

0 commit comments

Comments
 (0)