Skip to content

Latest commit

 

History

History
executable file
·
73 lines (67 loc) · 1.78 KB

Example.md

File metadata and controls

executable file
·
73 lines (67 loc) · 1.78 KB

An Example Runbook

As an example, you might have these steps in your runbook for a maintenance event:

On Thursday, 8 P.M., 2021-07-22

  1. Announce in the engineering channel that maintenance is about to start.
  2. Set in-app message for the maintenance.
  3. Stop the service:
Step/Stop-Important-Service () {
    echo "Stopping service ..."
    Runbook/confirm-continue-task
    echo "Important service stopped!"
}
  1. Take a snapshot of the DB.
  2. Run the maintenance script:
Step/Run-Maintenance-Script () {
    Runbook/confirm-continue-task
    echo "Doing real work ..."
    local i=0
    while (( i < 7 )); do
        echo -n .;  sleep 1
        (( ++i ))
    done
    echo
    echo "All done!"
}
  1. Start the service back up:
Step/Start-Important-Service () {
    Runbook/confirm-continue-task
    echo "Starting the service back up..."
    echo "Service started!"
}
  1. Check that things are still working.
  2. Notify in the engineering channel that the maintenance is now over.

Task to check the status of the service:

Task/Check-Service-Status () {
    echo Checking service status ...
    echo Service is Up.
}

Task to page for help:

Task/Page-2nd-level-on-call () {
    echo 'Help!!!'
}