Skip to content

Commit 516df22

Browse files
authored
Update _verify_keeper_using_mntr.mdx
docker command must be run as `/bin/sh -c 'c....'` otherwise the command past '|' will be executed on the locally and not on the container. Additionally, instead of localhost should 127.0.0.1 should be use. Bu default localhost resolves to `::1` on the recent clickhouse-keeper image, while only 127.0.0.1 listens.
1 parent 28fe30c commit 516df22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/deployment-guides/replication-sharding-examples/_snippets/_verify_keeper_using_mntr.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Run the command below from a shell on `clickhouse-keeper-01`, `clickhouse-keeper
1616
for `clickhouse-keeper-01` is shown below:
1717

1818
```bash
19-
docker exec -it clickhouse-keeper-01 echo mntr | nc localhost 9181
19+
docker exec -it clickhouse-keeper-01 /bin/sh -c 'echo mntr | nc 127.0.0.1 9181'
2020
```
2121

2222
The response below shows an example response from a follower node:
@@ -67,4 +67,4 @@ zk_max_file_descriptor_count 18446744073709551615
6767
zk_followers 2
6868
zk_synced_followers 2
6969
# highlight-end
70-
```
70+
```

0 commit comments

Comments
 (0)