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
Network device discovery and vulnerability management - Microsoft Defender for Endpoint
Cheat Sheets: Not Cheating, But a Helpful Tool
What Is Single Sign-on (SSO)? Meaning and How It Works? | Fortinet
Is Paige Vanzant Related To Ronnie Van Zant
How To Fix Epson Printer Error Code 0x9e
Spn 1816 Fmi 9
Otis Department Of Corrections
Women's Beauty Parlour Near Me
Dr Klabzuba Okc
Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
Erskine Plus Portal
83600 Block Of 11Th Street East Palmdale Ca
Remnant Graveyard Elf
Goldsboro Daily News Obituaries
Degreeworks Sbu
Kinkos Whittier
U/Apprenhensive_You8924
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
D10 Wrestling Facebook
Otterbrook Goldens
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Letter F Logos - 178+ Best Letter F Logo Ideas. Free Letter F Logo Maker. | 99designs
Michael Shaara Books In Order - Books In Order
Mani Pedi Walk Ins Near Me
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Voy Boards Miss America
List of all the Castle's Secret Stars - Super Mario 64 Guide - IGN
Vrachtwagens in Nederland kopen - gebruikt en nieuw - TrucksNL
Beryl forecast to become an 'extremely dangerous' Category 4 hurricane
A Cup of Cozy – Podcast
Valic Eremit
Reser Funeral Home Obituaries
Tokyo Spa Memphis Reviews
Vivification Harry Potter
Spy School Secrets - Canada's History
Moses Lake Rv Show
El agente nocturno, actores y personajes: quién es quién en la serie de Netflix The Night Agent | MAG | EL COMERCIO PERÚ
Ducky Mcshweeney's Reviews
Oreillys Federal And Evans
Leatherwall Ll Classifieds
The Minneapolis Journal from Minneapolis, Minnesota
Citibank Branch Locations In Orlando Florida
התחבר/י או הירשם/הירשמי כדי לראות.
Pa Legion Baseball
Iron Drop Cafe
Automatic Vehicle Accident Detection and Messageing System – IJERT
Germany’s intensely private and immensely wealthy Reimann family
Smoke From Street Outlaws Net Worth
Mikayla Campinos Alive Or Dead
Besoldungstabellen | Niedersächsisches Landesamt für Bezüge und Versorgung (NLBV)
Unity Webgl Extreme Race
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.