From dda3dff9b972362d1467f1b5268f84d9299d3a5e Mon Sep 17 00:00:00 2001 From: Lubomir Bucek <lubomir.bucek@eox.at> Date: Tue, 30 Jun 2020 15:34:29 +0200 Subject: [PATCH] add note about labels --- documentation/operator-guide/setup.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/documentation/operator-guide/setup.rst b/documentation/operator-guide/setup.rst index 6d8b570e..fbafa38b 100644 --- a/documentation/operator-guide/setup.rst +++ b/documentation/operator-guide/setup.rst @@ -68,6 +68,23 @@ This prints out a command that can be run on a machine to join the swarm: docker swarm join --token <obtained token> +It is possible to dedicate certain workers for example to contribute to ingestion exclusively, while others can take care only for rendering. This setup has benefits, when a mixed setup of nodes with different parameters is available. + +In order to set a node for example as `external`, to contribute in rendering only, one can simply run: + +.. code-block:: bash + + docker node update --label-add type=external <node-id> + +Additionally, it is necessary to modify `placement` parameter in the docker compose file. + +.. code-block:: yaml + + renderer: + deploy: + placement: + constraints: + - node.labels.type == external Additional information for swarm management can be obtained in the official `documentation of the project -- GitLab