diff --git a/nix/clickhouse/default.nix b/nix/clickhouse/default.nix index 7f618de7..cc5f941a 100644 --- a/nix/clickhouse/default.nix +++ b/nix/clickhouse/default.nix @@ -157,7 +157,13 @@ in command = "${lib.getExe startScript}"; readiness_probe = { - exec.command = ''${config.package}/bin/clickhouse-client --query "SELECT 1" --port ${builtins.toString config.port}''; + # FIXME: revert back to clickhouse-client readiness_probe once CI is moved out of github public runners + # See: https://github.com/juspay/services-flake/issues/100 + # 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;