How do you know if Jenkins is healthy? Define SLIs and alerts.
IntermediateScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Treat Jenkins as a product with SLOs.
What I'd do →
- SLIs: queue wait time p95, build start success (pods connect), controller availability (
/login200), UI latency, webhook-to-start latency. - Saturation: heap usage, executor utilisation, disk free, agent pods pending.
- Alerts: queue wait p95 > 5 min for 15 min, heap > 85%, disk < 15%, controller down 2 min.
- Dashboards from the Prometheus plugin in Grafana.
Why → Users feel queue time and failures; those are the right SLIs.
Interview tip → Mention measuring "infrastructure failure rate" separate from test failures.
More on Operations: scale, HA, upgrades & performance
Jenkins is a single VM with local disk and no backups. The business wants an RTO of 1 hour. Design recovery.AdvancedQueue length spikes to 80 every morning at 9:30 and builds wait 15 minutes. How do you analyse and fix?IntermediateThe controller has 12 GB heap and still does full GCs every few minutes. What do you investigate?AdvancedYou need to upgrade from Jenkins 2.426 LTS (Java 11) to the current LTS. What is your sequence?IntermediateBuild history is needed for 2 years for compliance, but the controller disk is filling. What do you do?IntermediateA plugin update caused the controller to fail on startup in production. Recover.Intermediate