@@ -81,11 +81,11 @@ Breaking the command down:
81
81
and all its internal data will be lost. If you would like to avoid this,
82
82
you can mount a dedicated volume (-v) for the container (each container
83
83
would need its own dedicated folder on your dev machine, see
84
- :ref: `docker-compose ` as reference)
84
+ :ref: `docker-compose ` as reference).
85
85
- Puts the container into the ``crate `` network and maps port ``4201 `` on your
86
- host machine to port ``4200 `` on the container (admin UI)
86
+ host machine to port ``4200 `` on the container (admin UI).
87
87
- Defines the environment variable ``CRATE_HEAP_SIZE `` which is used by CrateDB
88
- to allocate 2G for its heap
88
+ to allocate 2G for its heap.
89
89
- Runs the command ``crate `` inside the container with parameters:
90
90
* ``network.host ``: The ``_site_ `` value results in the binding of the
91
91
CrateDB process to a site-local IP address.
@@ -154,13 +154,13 @@ Now add the second node, ``crate02``, to the cluster::
154
154
155
155
Notice here that:
156
156
157
- - You updated the container and node name to ``crate02 ``
157
+ - You updated the container and node name to ``crate02 ``.
158
158
- You updated the port mapping, so that port ``4202 `` on your host is mapped
159
- to ``4200 `` on the container
159
+ to ``4200 `` on the container.
160
160
- You set the parameter ``discovery.seed_hosts `` to contain the other hosts of
161
- the cluster
161
+ the cluster.
162
162
- ``cluster.initial_master_nodes ``: Since only nodes ``crate01 `` and ``crate02 ``
163
- will participate in the election of the first master, this setting is unchanged
163
+ will participate in the election of the first master, this setting is unchanged.
164
164
165
165
Now, if you go back to the admin UI you opened earlier, or visit the admin UI
166
166
of the node you just created (located at ``http://localhost:4202/ ``) you
@@ -179,14 +179,14 @@ You can now add ``crate03`` like this::
179
179
180
180
Notice here that:
181
181
182
- - You updated the container and node name to ``crate03 ``
182
+ - You updated the container and node name to ``crate03 ``.
183
183
- You updated the port mapping, so that port ``4203 `` on your host is mapped
184
- to ``4200 `` on the container
184
+ to ``4200 `` on the container.
185
185
- You set parameter ``discovery.seed_hosts `` to contain the other hosts of the
186
- cluster
186
+ cluster.
187
187
- ``cluster.initial_master_nodes ``: This setting is removed since only nodes
188
188
``crate01 `` and ``crate02 `` will participate in the election of the first
189
- master
189
+ master.
190
190
191
191
192
192
Success! You just created a three-node CrateDB cluster with Docker.
@@ -336,18 +336,18 @@ define your services like this:
336
336
environment :
337
337
- CRATE_HEAP_SIZE=2g
338
338
339
- In file above:
339
+ In the file above:
340
340
341
- - You specified the latest `compose file version `_
341
+ - You specified the latest `compose file version `_.
342
342
- You created three CrateDB services which pulls the latest CrateDB Docker
343
- image and maps the ports manually
343
+ image and maps the ports manually.
344
344
- You created a file system volume per instance and defined a set of
345
- configuration parameters (`-C `)
346
- - You defined some deploy settings and an environment variable for the heap size
345
+ configuration parameters (`-C `).
346
+ - You defined some deploy settings and an environment variable for the heap size.
347
347
- Network settings no longer need to be defined in the latest compose file
348
- version because a `default network `_ will be created
348
+ version because a `default network `_ will be created.
349
349
- The start order of the containers is not deterministic and you want all
350
- three containers to be up and running before the election of the master node
350
+ three containers to be up and running before the election of the master node.
351
351
352
352
Best Practices
353
353
==============
@@ -439,7 +439,7 @@ Memory
439
439
------
440
440
441
441
You must calculate and explicitly `set the maximum memory `_ that the container
442
- can use. This is dependant on your host system and should typically be as high
442
+ can use. This is dependent on your host system and should typically be as high
443
443
as possible.
444
444
445
445
You must then calculate the appropriate heap size (typically half the container's
452
452
---
453
453
454
454
You must calculate and explicitly `set the maximum number of CPUs `_ that the
455
- container can use. This is dependant on your host system and should typically
455
+ container can use. This is dependent on your host system and should typically
456
456
be as high as possible.
457
457
458
458
Combined configuration
0 commit comments