Skip to content

2021-04-28: Gitlab.com service outage from database failover event

Current Status

GitLab.com experienced a database failover from Patroni-03 to Patroni-07 resulting in an outage. Investigation into the root cause of the failover is underway. GitLab.com is back in a stable state.

Summary for CMOC notice / Exec summary:

  1. Customer Impact: GitLab.com
  2. Customer Impact Duration: 16:19 UTC - 16:29 UTC (10 minutes)
  3. Current state: IncidentMitigated
  4. Root cause: User initiated restart

Timeline

View recent production deployment and configuration events (internal only)

All times UTC.

2021-04-28

  • 16:14:58 - shutdown of postgres on patroni-03 triggered, takes ~ 30 seconds to kill processes.

  • 16:15:29 - a set of events from the logs:

  • patroni.service: State 'stop-sigterm' timed out. Killing.

    • Apr 28 16:15:29 patroni-03-db-gprd systemd[1]: patroni.service: Main process exited, code=killed, status=9/KILL
    • Apr 28 16:15:29 patroni-03-db-gprd systemd[1]: Stopped Runners to orchestrate a high-availability PostgreSQL.
    • Apr 28 16:15:29 patroni-03-db-gprd systemd[1]: patroni.service: Unit entered failed state.
    • Apr 28 16:15:29 patroni-03-db-gprd systemd[1]: patroni.service: Failed with result 'signal'.
  • 16:18 - @nnelson declares incident in Slack.

  • 16:20 - patroni-07 takes over as leader

  • 16:25 - services recover, saturation and error rates return to normal

Corrective Actions

Corrective actions should be put here as soon as an incident is mitigated, ensure that all corrective actions mentioned in the notes below are included.


Note: In some cases we need to redact information from public view. We only do this in a limited number of documented cases. This might include the summary, timeline or any other bits of information, laid out in out handbook page. Any of this confidential data will be in a linked issue, only visible internally. By default, all information we can share, will be public, in accordance to our transparency value.


Incident Review

Summary

  1. Service(s) affected:
  2. Team attribution:
  3. Time to detection:
  4. Minutes downtime or degradation:

Metrics

Customer Impact

  1. Who was impacted by this incident? (i.e. external customers, internal customers)
    1. ...
  2. What was the customer experience during the incident? (i.e. preventing them from doing X, incorrect display of Y, ...)
    1. ...
  3. How many customers were affected?
    1. ...
  4. If a precise customer impact number is unknown, what is the estimated impact (number and ratio of failed requests, amount of traffic drop, ...)?
    1. ...

What were the root causes?

  • ...

Incident Response Analysis

  1. How was the incident detected?
    1. ...
  2. How could detection time be improved?
    1. ...
  3. How was the root cause diagnosed?
    1. ...
  4. How could time to diagnosis be improved?
    1. ...
  5. How did we reach the point where we knew how to mitigate the impact?
    1. ...
  6. How could time to mitigation be improved?
    1. ...
  7. What went well?
    1. ...

Post Incident Analysis

  1. Did we have other events in the past with the same root cause?
    1. ...
  2. Do we have existing backlog items that would've prevented or greatly reduced the impact of this incident?
    1. ...
  3. Was this incident triggered by a change (deployment of code or change to infrastructure)? If yes, link the issue.
    1. ...

Lessons Learned

  • ...

Guidelines

Resources

  1. If the Situation Zoom room was utilised, recording will be automatically uploaded to Incident room Google Drive folder (private)
Edited by John Jarvis