Skip to content

[install] docker-compose.ha.yaml 3-node ClickHouse cluster fails due to missing unique macros.replicaΒ #10485

@codesenju

Description

@codesenju

Bug description

When deploying SigNoz with a 3-node ClickHouse HA cluster using docker-compose.ha.yaml, the schema migrator fails with replica conflicts. All three ClickHouse nodes attempt to use the same default replica name, causing ZooKeeper to reject subsequent replica registrations.

Error observed:

Replica /clickhouse/tables/.../replicas/example01-01-1 already exists. (REPLICA_ALREADY_EXISTS)

Expected behavior

Each ClickHouse node should have a unique replica name, allowing successful creation of ReplicatedMergeTree tables across the cluster without conflicts.

How to reproduce

  1. Clone SigNoz repository: git clone https://github.com/SigNoz/signoz.git
  2. Navigate to deploy/docker: cd signoz/deploy/docker
  3. Use HA compose: cp docker-compose.ha.yaml docker-compose.yaml
  4. Deploy: docker compose up -d
  5. Observe migrator logs: docker logs signoz-telemetrystore-migrator

Expected: Migrations complete successfully
Actual: Migrator fails with REPLICA_ALREADY_EXISTS error

Version information

  • SigNoz version: v0.113.0 (latest main)
  • Your OS and version: Ubuntu 22.04
  • Your CPU Architecture: x86_64 (Intel/AMD)

Additional context

The fix requires adding unique macros.replica configuration for each ClickHouse node:

  • macros-1.xml β†’ <replica>replica_1</replica>
  • macros-2.xml β†’ <replica>replica_2</replica>
  • macros-3.xml β†’ <replica>replica_3</replica>

Thank you for your bug report – we love squashing them!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginstallIssues with installing SigNoz

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions