wildfly / wildfly-charts

Helm Charts for WildFly
https://docs.wildfly.org/wildfly-charts/
Apache License 2.0
3 stars 14 forks source link

Add support for configuring Kubernetes startup probe #37

Closed yersan closed 2 years ago

yersan commented 3 years ago

Overview

The probes (Liveness and Readiness) added by the Helm Chart uses the following default values:

failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
initialDelaySeconds: 0

For the liveness probes, for example, this configuration means the server could take until failureThreshold*periodSeconds=30 seconds to get started. If such a condition doesn't occur the cluster will kill the pod to start over it again (restart policy is always).

Sometimes the pod could need more than 30 seconds to start, for example:

In such a case, users could be tempted to increase the initialDelaySeconds or the failure failureThreshold configuration, however increasing the initialDelaySeconds will delay a fixed value, which could compromise the expected fast response. Increasing the failureThreshold could also break the established conditions you have decided to check your application at runtime.

The alternative to those issues is to have the ability to configure a Startup Probe. The Startup Probe can be used to delay the initial checks done by the liveness and readiness probes, allowing some configuration without compromising them.

The goal of this RFE is to define the default initial configuration of a Startup Probe so users can tweak it when required.

Issue Metadata

https://issues.redhat.com/browse/EAP7-1769

Related Issues

Dev Contacts

Yeray Borgess yborgess@redhat.com

QE Contacts

TBD

Testing By

TBD

Affected Projects or Components

WildFly Charts

Other Interested Projects

N/A

Requirements

Hard Requirements

Nice-to-Have Requirements

N/A

Non-Requirements

N/A

Test Plan

Community Documentation

The Helm Chart docs will include a description of the uses of the Startup Probe.

Release Note Content

Added the ability to configure a Startup Probe.