You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: docs/tutorials.md
+36-35
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ title = "Tutorials"
3
3
weight = 4
4
4
nav = [
5
5
"Setting Up a Secure Cluster",
6
+
"Setting Up a Docker Cluster",
6
7
"Using Integer Field Values",
7
8
"Storing Row and Column Attributes",
8
9
]
@@ -287,31 +288,31 @@ The corresponding [Docker Compose](https://docs.docker.com/compose/) file is bel
287
288
```yaml
288
289
version: '2'
289
290
services:
290
-
pilosa1:
291
-
image: pilosa/pilosa:latest
292
-
ports:
293
-
- "10101:10101"
294
-
environment:
295
-
- PILOSA_CLUSTER_COORDINATOR=true
296
-
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
297
-
networks:
298
-
- pilosanet
299
-
entrypoint:
300
-
- /pilosa
301
-
- server
302
-
- --bind
303
-
- "pilosa1:10101"
304
-
pilosa2:
305
-
image: pilosa/pilosa:latest
306
-
environment:
307
-
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
308
-
networks:
309
-
- pilosanet
310
-
entrypoint:
311
-
- /pilosa
312
-
- server
313
-
- --bind
314
-
- "pilosa2:10101"
291
+
pilosa1:
292
+
image: pilosa/pilosa:latest
293
+
ports:
294
+
- "10101:10101"
295
+
environment:
296
+
- PILOSA_CLUSTER_COORDINATOR=true
297
+
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
298
+
networks:
299
+
- pilosanet
300
+
entrypoint:
301
+
- /pilosa
302
+
- server
303
+
- --bind
304
+
- "pilosa1:10101"
305
+
pilosa2:
306
+
image: pilosa/pilosa:latest
307
+
environment:
308
+
- PILOSA_GOSSIP_SEEDS=pilosa1:14000
309
+
networks:
310
+
- pilosanet
311
+
entrypoint:
312
+
- /pilosa
313
+
- server
314
+
- --bind
315
+
- "pilosa2:10101"
315
316
networks:
316
317
pilosanet:
317
318
```
@@ -322,11 +323,11 @@ It is very easy to run a Pilosa Cluster on different servers using [Docker Swarm
322
323
323
324
The instructions in this section require Docker 17.06 and better. Although it is possible to run a Docker swarm on MacOS or Windows, it is easiest to run it on Linux. So we assume you are trying these instructions on Linux, probably on the cloud.
324
325
325
-
We are going to use two servers: the master node runs in the first server and a slave node in the second server.
326
+
We are going to use two servers: the manager node runs in the first server and a worker node in the second server.
326
327
327
328
Docker nodes require some ports to be accesible from outside. Before carrying on, make sure the following ports are open on all nodes: TCP/2377, TCP/7946, UDP/7946, UDP/4789.
328
329
329
-
Let's initialize the swarm first. Run the following on the master:
330
+
Let's initialize the swarm first. Run the following on the manager:
330
331
```
331
332
docker swarm init --advertise-addr=IP-ADDRESS
332
333
```
@@ -337,15 +338,15 @@ The output of the command above should be similar to:
337
338
```
338
339
To add a manager to this swarm, run the following command:
Let's make the slave node join the master. Copy/paste the command above in a shell on the slave, replacing the token and IP address with the correct values. You may neeed to add `--advertise-addr=SLAVE-EXTERNAL-IP-ADDRESS` parameter if the slave has more than one network interface:
344
+
Let's make the worker node join the manager. Copy/paste the command above in a shell on the worker, replacing the token and IP address with the correct values. You may neeed to add `--advertise-addr=WORKER-EXTERNAL-IP-ADDRESS` parameter if the worker has more than one network interface:
If you have created the `pilosanet` network before, delete it before carrying on, otherwise skip to the next step:
361
362
```
362
363
docker network rm pilosanet
363
364
```
364
365
365
-
Let's create the `pilosanet` network, but with `overlay` type this time. We should also make this network attachable in order to be able to attach containers to it. Run the following on the master:
366
+
Let's create the `pilosanet` network, but with `overlay` type this time. We should also make this network attachable in order to be able to attach containers to it. Run the following on the manager:
0 commit comments