How to Troubleshoot and Address Liveness / Readiness probe failure (2024)

Preconditions

Liveness / Readiness probe failure are caused by Jenkins being not responsive to a health check - currently done https://$POD_IP:8080/$CONTROLLER_NAME/login. Those failures occurs when Jenkins suffers from performance issues and is unresponsive for too long. In most cases, this happens on startup.

Before troubleshooting any further, we recommend to go through the following recommendations that address common causes.

Review Resource Requirements

In containerized environment, it is important that Jenkins gets the resource it needs:

  • Ensure that appropriate container Memory and CPUs are given to the controller (see the "Jenkins controller Memory in MB" and "Jenkins controller CPUs" fields of the Managed controller configuration)

see also the controller Sizing Guidelines

Review Startup Performances Preconditions

If the probe fails on startup, review also How to Troubleshoot and Address Jenkins Startup Performances - Preconditions

Workarounds

Liveness / Readiness probe failures suggest performances issues or slow startup. A quick workaround for such kind of issues is to update those probe to give more slack to Jenkins to start or be responsive. But the probe configuration we want to tweak depends on the nature of the problem: is it failing on startup or while Jenkins is running ?

A Probe fails on Startup

If a probe fails while a Managed controller is starting, a quick workaround is to give more time for Jenkins to start (Note that the Liveness probe failure is causing because if it fails it restarts the container).

Increase the Initial Delay of the Liveness Probe

To increase the Liveness probe initial delay, configure the Managed controller item and update the value of "Health Check Initial Delay". By default it set to 600 (10 minutes). You may increase it to for example 1800 (30 minutes).

Increase the Failure Threshold of the Readiness Probe

To increase the readiness probe failure threshold, configure the Managed controller item and update the value of "Readiness Failure Threshold". By default, it is set to 100 (100 times). You may increase it to, for example, 300.

A Probe fails while Jenkins is running

If a probe fails while a Managed controller is running, it is quite concerning as it suggests that the controller was non responsive for minutes. In such cases, increasing the probes timeout can help to keep the unresponsive controller up for a longer time so that we can collect data.

Increase the Timeout of the Liveness Probe

To increase the Liveness probe timeout, configure the Managed controller item and update the value of "Health Check Timeout". By default it set to 10 (10 seconds). You may increase it to for example 30 (30 seconds).

Increase the Timeout of the Readiness Probe

To increase the Readiness probe timeout, configure the Managed controller item and update the value of "Readiness Timeout". By default it set to 5 (5 seconds). You may increase it to for example 30 (30 seconds).

Data Collection

Although updating the probe configuration can help to get the controller started, it is important to troubleshoot the root cause of the problem, which is usually related to performance.

Failure on startup

If a probe fails while the Managed controller is starting:

  • To troubleshoot the issue further please have a look at How to Troubleshoot and Address Jenkins Startup Performances.

Failure while Jenkins is running

If a probe fails while the Managed controller is running:

  • To troubleshoot the issue further please have a look at Required Data: Jenkins Hang Issue On Linux.

Modifying a liveness/readiness probe on a running instance

If you’d like to modify the values for the liveness or readiness probes, you can either:

1 ) Go to the Operations center and click the gear for a specific managed controller, and under the Configure page, you can change the values:

How to Troubleshoot and Address Liveness / Readiness probe failure (1)

2 ) You can also directly edit the statefulset definition for the pod you would like to change by running:

For the operations center:

kubectl edit statefulset cjoc

or for a specific controller:

kubectl edit statefulset my-controller

and you can directly edit the relevant values:

How to Troubleshoot and Address Liveness / Readiness probe failure (2)

After you save those changes, the pod will be restarted by Kubernetes automatically, and the new values will be applied. Note: this method will only change the values until the next helm modification of the statefulset, or modifications made by the CloudBees CI product, hence this kubectl edit method should only be relied upon for temporary diagnostic purposes.

How to Troubleshoot and Address Liveness / Readiness probe failure (2024)
Top Articles
Generation who refuse to grow up: No mortgage. No marriage. No children. No career plan. Like so many 30-somethings, Marianne Power admits she's one of them...
99 Inspirational Real Estate Quotes You Haven’t Heard 1,000 Times
Lifebridge Healthstream
Chalupp's Pizza Taos Menu
According To The Wall Street Journal Weegy
Devourer Of Gods Resprite
Which Is A Popular Southern Hemisphere Destination Microsoft Rewards
Inside California's brutal underground market for puppies: Neglected dogs, deceived owners, big profits
Bc Hyundai Tupelo Ms
Mephisto Summoners War
TS-Optics ToupTek Color Astro Camera 2600CP Sony IMX571 Sensor D=28.3 mm-TS2600CP
Rainfall Map Oklahoma
Cbs Trade Value Chart Fantasy Football
Saberhealth Time Track
Dutch Bros San Angelo Tx
[Birthday Column] Celebrating Sarada's Birthday on 3/31! Looking Back on the Successor to the Uchiha Legacy Who Dreams of Becoming Hokage! | NARUTO OFFICIAL SITE (NARUTO & BORUTO)
Napa Autocare Locator
Georgia Vehicle Registration Fees Calculator
Sizewise Stat Login
Graphic Look Inside Jeffrey Dahmer
Noaa Duluth Mn
Teen Vogue Video Series
Parc Soleil Drowning
St Clair County Mi Mugshots
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Apartments / Housing For Rent near Lake Placid, FL - craigslist
kvoa.com | News 4 Tucson
Discord Nuker Bot Invite
Labcorp.leavepro.com
Lovindabooty
Mami No 1 Ott
Generator Supercenter Heartland
Askhistorians Book List
Die wichtigsten E-Nummern
J&R Cycle Villa Park
O'reilly's Wrens Georgia
How to Draw a Bubble Letter M in 5 Easy Steps
Memberweb Bw
Pickle Juiced 1234
R&J Travel And Tours Calendar
Vivek Flowers Chantilly
Amc.santa Anita
Das schönste Comeback des Jahres: Warum die Vengaboys nie wieder gehen dürfen
Craigslist Sarasota Free Stuff
303-615-0055
Billings City Landfill Hours
Lagrone Funeral Chapel & Crematory Obituaries
Itsleaa
Wayward Carbuncle Location
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6170

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.