Skip to main content

Deploy with Docker Swarm

Steps to set up#

1. Install Docker Engine and Docker Compose#

2. Clone SigNoz github repo and go to deploy folder#

git clone https://github.com/SigNoz/signoz.git && cd signoz/deploy/

3. Enable docker swarm mode#

docker swarm init

This enables current node as manager in swarm

You can join more nodes using the docker swarm join commands. Do note the docker swarm join commands which are shown after docker swarm init.

4. Deploy SigNoz#

docker stack deploy -c docker-swarm/clickhouse-setup/docker-compose.yaml signoz

5. List services#

The following command lists running services. Wait till all the replicas of all services are available.

docker stack services signoz

6. Scale up otel-collector#

Scale up by changing replica count in this line of docker-compose.yaml and run

docker stack deploy -c docker-swarm/clickhouse-setup/docker-compose.yaml signoz

Capacity Planning#

Each otel-collector replica should handle 50K spans/s. Based on the scale you want to handle you can change the number of replica as mentioned in the above step.