From 17e20e7f418d8a6f20ae7083dd070815a4df35a2 Mon Sep 17 00:00:00 2001 From: Srikanth Chekuri Date: Wed, 23 Oct 2024 00:05:10 +0530 Subject: [PATCH] chore: split migrator job to sync and async (#6107) --- .../docker-compose-minimal.yaml | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/deploy/docker/clickhouse-setup/docker-compose-minimal.yaml b/deploy/docker/clickhouse-setup/docker-compose-minimal.yaml index e12fb3831c..17d79860cb 100644 --- a/deploy/docker/clickhouse-setup/docker-compose-minimal.yaml +++ b/deploy/docker/clickhouse-setup/docker-compose-minimal.yaml @@ -34,7 +34,7 @@ x-db-depend: &db-depend depends_on: clickhouse: condition: service_healthy - otel-collector-migrator: + otel-collector-migrator-sync: condition: service_completed_successfully # clickhouse-2: # condition: service_healthy @@ -212,11 +212,13 @@ services: volumes: - ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf - otel-collector-migrator: + otel-collector-migrator-sync: image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.102.10} - container_name: otel-migrator + container_name: otel-migrator-sync command: + - "sync" - "--dsn=tcp://clickhouse:9000" + - "--up=" depends_on: clickhouse: condition: service_healthy @@ -225,6 +227,22 @@ services: # clickhouse-3: # condition: service_healthy + otel-collector-migrator-async: + image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.102.10} + container_name: otel-migrator-async + command: + - "async" + - "--dsn=tcp://clickhouse:9000" + - "--up=" + depends_on: + clickhouse: + condition: service_healthy + otel-collector-migrator-sync: + condition: service_completed_successfully + # clickhouse-2: + # condition: service_healthy + # clickhouse-3: + # condition: service_healthy otel-collector: image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.102.12} @@ -262,7 +280,7 @@ services: depends_on: clickhouse: condition: service_healthy - otel-collector-migrator: + otel-collector-migrator-sync: condition: service_completed_successfully query-service: condition: service_healthy