openstack-k8s-operators / horizon-operator

Apache License 2.0
1 stars 26 forks source link

Tweak probe timing #280

Closed olliewalsh closed 9 months ago

olliewalsh commented 9 months ago

Horizon pods are taking a very long time to go to ready state (when the service will start routing traffic to it).

I can see there are init tasks that run on every container startup but they are not that slow.

The StartupProbe initial delay (60s) seem extremely long. Use a 10s delay instead then poll every 10 seconds for up to 5 mins.

Liveness/readiness probes do not run until StartupProbe succeeds so drop the initial delays to 10s. Also ensure timeout is less that period to prevent hitting the endpoint with multiple concurrent requests.

openshift-ci[bot] commented 9 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olliewalsh, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/openstack-k8s-operators/horizon-operator/blob/main/OWNERS)~~ [olliewalsh,stuggi] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment