From 7b02b5df04ba7221ea09666d06120f9dc02893c1 Mon Sep 17 00:00:00 2001 From: Christian Adams Date: Wed, 3 Apr 2024 11:26:41 -0700 Subject: [PATCH] Set default for -iness probe parameters and add docs (#1808) --- .../advanced-configuration/container-probes.md | 11 +++++++++++ roles/installer/defaults/main.yml | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/docs/user-guide/advanced-configuration/container-probes.md b/docs/user-guide/advanced-configuration/container-probes.md index 96be2f4ef..5d437d6f6 100644 --- a/docs/user-guide/advanced-configuration/container-probes.md +++ b/docs/user-guide/advanced-configuration/container-probes.md @@ -2,6 +2,17 @@ These parameters control the usage of liveness and readiness container probes for the web and task containers. +> [!ALERT] +> All of probes are disabled by default for now, to enable it, set the *_period parameters. For example: + +``` + +web_liveness_period: 15 +web_readiness_period: 15 +task_liveness_period: 15 +task_readiness_period: 15 +``` + #### Web / Task Container Liveness Check The liveness probe queries the status of the supervisor daemon of the container. The probe will fail if it diff --git a/roles/installer/defaults/main.yml b/roles/installer/defaults/main.yml index ed1620602..0651316cf 100644 --- a/roles/installer/defaults/main.yml +++ b/roles/installer/defaults/main.yml @@ -296,6 +296,11 @@ replicas: 1 web_replicas: '' task_replicas: '' +web_liveness_period: 0 +web_readiness_period: 0 +task_liveness_period: 0 +task_readiness_period: 0 + task_args: - /usr/bin/launch_awx_task.sh task_command: []