Skip to content

Commit 1356a7d

Browse files
authored
[hotfix][docs] Fix inconsistent configuration options in "Deploy with Docker" (#1082)
1 parent 01f95ef commit 1356a7d

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

website/docs/install-deploy/deploying-with-docker.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ sidebar_position: 4
2121

2222
# Deploying with Docker
2323

24-
This guide will show you how to run a Fluss cluster using Docker. In this guide, we will introduce the prerequisites of
25-
the Docker environment and how to quickly create a Fluss cluster using the `docker run` commands
26-
or `docker compose` file.
24+
This guide will show you how to run a Fluss cluster using Docker.
25+
We will introduce the [prerequisites of the Docker environment](#prerequisites), and how to quickly create a Fluss cluster using [`docker run` commands](#deploy-with-docker)
26+
or a [`docker compose` file](#deploy-with-docker-compose).
2727

2828
## Prerequisites
2929

30-
**Overview**
31-
32-
Prepare the build machine before creating the Docker image.
33-
3430
**Hardware**
3531

3632
Recommended configuration: 4 cores, 16GB memory.
@@ -81,8 +77,9 @@ docker run \
8177
--name coordinator-server \
8278
--network=fluss-demo \
8379
--env FLUSS_PROPERTIES="zookeeper.address: zookeeper:2181
84-
bind.listeners: FLUSS://coordinator-server:9123
85-
advertised.listeners: FLUSS://localhost:9123
80+
bind.listeners: INTERNAL://coordinator-server:0, CLIENT://coordinator-server:9123
81+
advertised.listeners: CLIENT://localhost:9123
82+
internal.listener.name: INTERNAL
8683
" \
8784
-p 9123:9123 \
8885
-d fluss/fluss:$FLUSS_VERSION$ coordinatorServer
@@ -102,12 +99,14 @@ docker run \
10299
--name tablet-server \
103100
--network=fluss-demo \
104101
--env FLUSS_PROPERTIES="zookeeper.address: zookeeper:2181
105-
bind.listeners: FLUSS://tablet-server:9124
106-
advertised.listeners: FLUSS://localhost:9124
102+
bind.listeners: INTERNAL://tablet-server:0, CLIENT://tablet-server:9123
103+
advertised.listeners: CLIENT://localhost:9124
104+
internal.listener.name: INTERNAL
107105
tablet-server.id: 0
106+
kv.snapshot.interval: 0s
108107
data.dir: /tmp/fluss/data
109108
remote.data.dir: /tmp/fluss/remote-data" \
110-
-p 9124:9124 \
109+
-p 9124:9123 \
111110
--volume shared-tmpfs:/tmp/fluss \
112111
-d fluss/fluss:$FLUSS_VERSION$ tabletServer
113112
```
@@ -123,12 +122,14 @@ docker run \
123122
--name tablet-server-0 \
124123
--network=fluss-demo \
125124
--env FLUSS_PROPERTIES="zookeeper.address: zookeeper:2181
126-
bind.listeners: FLUSS://tablet-server-0:9124
127-
advertised.listeners: FLUSS://localhost:9124
125+
bind.listeners: INTERNAL://tablet-server-0:0, CLIENT://tablet-server-0:9123
126+
advertised.listeners: CLIENT://localhost:9124
127+
internal.listener.name: INTERNAL
128128
tablet-server.id: 0
129+
kv.snapshot.interval: 0s
129130
data.dir: /tmp/fluss/data/tablet-server-0
130131
remote.data.dir: /tmp/fluss/remote-data" \
131-
-p 9124:9124 \
132+
-p 9124:9123 \
132133
--volume shared-tmpfs:/tmp/fluss \
133134
-d fluss/fluss:$FLUSS_VERSION$ tabletServer
134135
```
@@ -139,12 +140,14 @@ docker run \
139140
--name tablet-server-1 \
140141
--network=fluss-demo \
141142
--env FLUSS_PROPERTIES="zookeeper.address: zookeeper:2181
142-
bind.listeners: FLUSS://tablet-server-1:9125
143-
advertised.listeners: FLUSS://localhost:9125
143+
bind.listeners: INTERNAL://tablet-server-1:0, CLIENT://tablet-server-1:9123
144+
advertised.listeners: CLIENT://localhost:9125
145+
internal.listener.name: INTERNAL
144146
tablet-server.id: 1
147+
kv.snapshot.interval: 0s
145148
data.dir: /tmp/fluss/data/tablet-server-1
146149
remote.data.dir: /tmp/fluss/remote-data" \
147-
-p 9125:9125 \
150+
-p 9125:9123 \
148151
--volume shared-tmpfs:/tmp/fluss \
149152
-d fluss/fluss:$FLUSS_VERSION$ tabletServer
150153
```
@@ -155,12 +158,14 @@ docker run \
155158
--name tablet-server-2 \
156159
--network=fluss-demo \
157160
--env FLUSS_PROPERTIES="zookeeper.address: zookeeper:2181
158-
bind.listeners: FLUSS://tablet-server-2:9126
159-
advertised.listeners: FLUSS://localhost:9126
161+
bind.listeners: INTERNAL://tablet-server-2:0, CLIENT://tablet-server-2:9123
162+
advertised.listeners: CLIENT://localhost:9126
163+
internal.listener.name: INTERNAL
160164
tablet-server.id: 2
165+
kv.snapshot.interval: 0s
161166
data.dir: /tmp/fluss/data/tablet-server-2
162167
remote.data.dir: /tmp/fluss/remote-data" \
163-
-p 9126:9126 \
168+
-p 9126:9123 \
164169
--volume shared-tmpfs:/tmp/fluss \
165170
-d fluss/fluss:$FLUSS_VERSION$ tabletServer
166171
```

0 commit comments

Comments
 (0)