RunnerSystemFailuresRisingPlatformHealthy
Jobs fail with runner_system_failure at a higher rate than usual, and the Rails API and Sidekiq are healthy.
Overview
Section titled “Overview”A rise in runner_system_failure can come from the runners or from the platform they talk to. When the Rails API or Sidekiq has more errors than usual at the same time, the platform is the likely cause and this alert stays silent. When both are normal, the cause is likely on the runner side, and this alert fires.
Services
Section titled “Services”- ci-runners: the managers that report the failures.
- Rails API and Sidekiq: the platform check.
Metrics
Section titled “Metrics”gitlab_runner_failed_jobs_total{failure_reason="runner_system_failure"}andgitlab_runner_jobs_total: the failure ratio.gitlab_service_errors:ratio_5m{type=~"api|sidekiq"}: the platform error ratio.
Alert Behavior
Section titled “Alert Behavior”- Fires when the 10-minute failure ratio is above 1% and more than three times its average over the previous day, for 15 minutes.
- Stays silent while the API or Sidekiq
mainstage error ratio has been above 0.1% and more than twice its own average over the previous day for the last 10 minutes. - A platform incident shorter than 10 minutes does not silence the alert.
- The failure ratio covers the same runner fleet as the
ci_runner_jobsSLI, summed over all shards. One shard with a high failure ratio can stay below the threshold. - Posts to
#runner_alertsonly, through the route inalertmanager/alertmanager.jsonnet. It does not page. Severity is s4 and the team label isrunner_core. - Stays firing for 1 hour after the condition clears (
keep_firing_for), so one incident posts one message an hour at most. While it fires, Alertmanager repeats the message every 8 hours. - The rule only runs in
gprd.
Severities
Section titled “Severities”S4. The alert is a hint to look at the runners. It does not mean jobs are lost.
Verification
Section titled “Verification”- On the Runner Core dashboard, check Row 2 for the
RunnerInfraFailurebucket and Row 0 for the Rails API and Sidekiq lanes. - Check the failure rate by shard to see if one shard or all shards are affected.
Troubleshooting
Section titled “Troubleshooting”- One shard dominates the failures: look at that shard’s managers and its autoscaling or cloud provider errors.
- All shards: look for a change in the runner version or the runner configuration.
Possible Resolutions
Section titled “Possible Resolutions”- Roll back the runner version or the configuration change.
- Fix the cloud provider issue for the affected shard.
Dependencies
Section titled “Dependencies”- The
gitlab_service_errors:ratio_5mrecording rules for theapiandsidekiqservices. If they are missing, the platform check never suppresses the alert. - The
runner_system_failureseries. If it is absent, the alert never fires.
Escalation
Section titled “Escalation”Runner Core owns this alert. Reach them in #g_runner_core.
Definitions
Section titled “Definitions”- The rule is in
libsonnet/alerts/runner-failure-attribution-alerts.libsonnet. Regenerate with./scripts/generate-jsonnet-rules.sh mimir-rules-jsonnet/runners-platform-alerts.jsonnet. - The unit tests are in
test/mimir-rules/runner-failure-attribution-alerts_test.yml.
Related Links
Section titled “Related Links”- gitlab-runner#39656: the work item for this alert.