From 8452f7f7fa2549d9a998bcd9916dc13df6220af6 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Thu, 22 Feb 2024 02:37:59 +0530 Subject: [PATCH] maybe it is the readiness_probe? --- nix/clickhouse/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/clickhouse/default.nix b/nix/clickhouse/default.nix index fc8385e5..5a47f027 100644 --- a/nix/clickhouse/default.nix +++ b/nix/clickhouse/default.nix @@ -152,7 +152,10 @@ in command = "${lib.getExe startScript}"; readiness_probe = { - exec.command = ''${config.package}/bin/clickhouse-client --query "SELECT 1" --port ${builtins.toString config.port}''; + http_get = { + host = "localhost"; + port = if (lib.hasAttr "http_port" config.extraConfig) then config.extraConfig.http_port else 8123; + }; initial_delay_seconds = 2; period_seconds = 10; timeout_seconds = 4;