From fa603e8aea7101b3ff74e1a2d3832a3c02226afd Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 22 Oct 2025 14:19:50 +0100 Subject: [PATCH] Move clickhouse to zippy. --- services/clickhouse.hcl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/clickhouse.hcl b/services/clickhouse.hcl index f3c7718..b072251 100644 --- a/services/clickhouse.hcl +++ b/services/clickhouse.hcl @@ -6,6 +6,13 @@ job "clickhouse" { } group "db" { + # Run on primary storage node (zippy) for local disk performance + # TODO: move to fractal once it's converted to NixOS (spinning disks OK for time-series data) + constraint { + attribute = "${meta.storage_role}" + value = "primary" + } + network { port "clickhouse" { static = 8123 @@ -18,7 +25,7 @@ job "clickhouse" { config { image = "clickhouse/clickhouse-server:25.9" volumes = [ - "/data/compute/appdata/clickhouse:/var/lib/clickhouse", + "/data/services/clickhouse:/var/lib/clickhouse", "local/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro", "local/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro", ]