From d27b3ed36d241c0e9bfce1933e0fddfb37675502 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Thu, 25 Apr 2024 19:14:32 +0100 Subject: [PATCH] Update probe timeouts Using CRC, service can end up crashlooping becuase the readiness/lineness probe times are too short. This can create more issues, as the commonly used services experience more load when crashed servies are trying to restart. The values have been updated to match recent updates to glance, placement and keystone opererators. --- pkg/autoscaling/aodh_statefulset.go | 10 +++++----- pkg/ceilometer/statefulset.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/autoscaling/aodh_statefulset.go b/pkg/autoscaling/aodh_statefulset.go index dda2e652..436f0773 100644 --- a/pkg/autoscaling/aodh_statefulset.go +++ b/pkg/autoscaling/aodh_statefulset.go @@ -48,14 +48,14 @@ func AodhStatefulSet( livenessProbe := &corev1.Probe{ // TODO might need tuning - TimeoutSeconds: 5, - PeriodSeconds: 3, - InitialDelaySeconds: 3, + TimeoutSeconds: 30, + PeriodSeconds: 30, + InitialDelaySeconds: 5, } readinessProbe := &corev1.Probe{ // TODO might need tuning - TimeoutSeconds: 5, - PeriodSeconds: 5, + TimeoutSeconds: 30, + PeriodSeconds: 30, InitialDelaySeconds: 5, } diff --git a/pkg/ceilometer/statefulset.go b/pkg/ceilometer/statefulset.go index f0a3260e..f8f4f796 100644 --- a/pkg/ceilometer/statefulset.go +++ b/pkg/ceilometer/statefulset.go @@ -48,14 +48,14 @@ func StatefulSet( // TO-DO Probes livenessProbe := &corev1.Probe{ // TODO might need tuning - TimeoutSeconds: 5, - PeriodSeconds: 3, - InitialDelaySeconds: 3, + TimeoutSeconds: 30, + PeriodSeconds: 30, + InitialDelaySeconds: 5, } readinessProbe := &corev1.Probe{ // TODO might need tuning - TimeoutSeconds: 5, - PeriodSeconds: 5, + TimeoutSeconds: 30, + PeriodSeconds: 30, InitialDelaySeconds: 5, }