Skip to content

Commit

Permalink
process-compose: add health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Aug 22, 2024
1 parent 86818db commit 841900f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions perSystem/process-compose/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,33 @@
#};
hydra-offline = {
command = config.packages.hydra-offline-wrapper;
readiness_probe = {
http_get = {
host = "127.0.0.1";
scheme = "http";
port = 4001;
path = "/protocol-parameters";
};
};
};
hydra-doom = {
command = config.packages.hydra-doom-wrapper;
depends_on."hydra-offline".condition = "process_started";
availability = {
restart = "on_failure";
backoff_seconds = 2;
};
};
hydra-control-plane = {
command = config.packages.hydra-control-plane-wrapper;
depends_on."hydra-offline".condition = "process_started";
readiness_probe = {
http_get = {
host = "127.0.0.1";
scheme = "http";
port = 8000;
path = "/global";
};
};
depends_on."hydra-offline".condition = "process_healthy";
availability = {
restart = "on_failure";
backoff_seconds = 2;
Expand Down

0 comments on commit 841900f

Please sign in to comment.