# Multi-servers installation

#### Add a worker node

🚨 This section pertains to clustering Blurit On-Premise. If you would like more information about it, please contact our customer services.🚨&#x20;

Before joining the manager machine, you need to open some ports:

* `TCP` port `2377` for cluster management communications
* `TCP` and `UDP` port `7946` for communication among nodes
* `UDP` port `4789` for overlay network traffic

Get Join-token on manager machine:

{% code lineNumbers="true" %}

```bash
docker swarm join-token worker
```

{% endcode %}

Replace `<worker-token>` with the actual token obtained from the previous command, and `<ip-of-manager-machine>` with the IP address or hostname of the manager machine. This command will join the worker machine to the swarm cluster.

Join the swarm cluster on the worker machine (<https://docs.docker.com/engine/reference/commandline/swarm\\_join/>):

{% code lineNumbers="true" %}

```bash
docker swarm join --token <worker-token> <ip-of-manager-machine>:2377
```

{% endcode %}

#### Add label to node

Add a label allow to chose the machine to deploy the workers. For multiple machine installation, it's mandatory for a smooth deployment.

This command display every node present on the swarm cluster:

{% code lineNumbers="true" %}

```bash
docker node ls
```

{% endcode %}

Add a label to a node:

{% code lineNumbers="true" %}

```bash
docker node update --label-add blurit-worker-<number of the machine> <node-name>
```

{% endcode %}

Replace `<machine-number>` with the appropriate number for the machine, and `<node-name>` with the name of the node. This command adds a label to the specified node, which will be used for deployment purposes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc-op.blurit.io/2.2.0/blurit-on-premise/installation/multi-servers-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
