Skip to content

Commit

Permalink
maybe it is the readiness_probe?
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Feb 21, 2024
1 parent 800ae72 commit 8452f7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/clickhouse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8452f7f

Please sign in to comment.