Docs » Scenario: Skyler creates business-hours and nights-and-weekend rotations for the web application service

Scenario: Skyler creates business-hours and nights-and-weekend rotations for the web application service 🔗

Skyler, the site reliability engineering (SRE) manager for Buttercup Games, needs to create an on-call schedule for the web application SREs with the following coverage needs:

  • Skyler needs coverage for the web application service for business hours Monday through Friday of each week, with one responder on the team being on call for a whole week.

  • Skyler also needs coverage for the web application service for nights and weekends. Night coverage is 5 PM to 8 AM Monday through Friday. Weekend coverage is one responder who is on call from Friday at 5 PM to Monday at 8 AM.

  • Finally, Skyler needs one responder on call 24x7 as secondary coverage for one week Monday through Sunday.

Skyler takes the following steps to configure a schedule that meets these coverage needs:

  1. Skyler creates a schedule for the primary coverage that includes three shifts: a business-hours shift, a weeknights shift, and a weekends shift.
  2. Skyler creates a schedule for secondary coverage with a 24x7 shift
  3. Skyler adds the primary and secondary schedules to the incident workflow in the incident policy for the web application service
  4. Skyler enables the incident policy for the web application service

Skyler creates a schedule for primary coverage

  1. Skyler creates a new schedule for primary coverage for the web application service and names it accordingly: Web application service - primary.

  2. Skyler adds a WebApp teams tag to make the schedule easier to find. The teams tag also sorts the list of responders so they’re easier to find and select when Skyler adds them to a shift later. The following image shows the new schedule Skyler creates with the teams tag.

Create a primary schedule for the web application.

Skyler creates a business-hours shift

Skyler creates a business-hours shift in the primary schedule for the web application. Using the day-by-day shift type, Skyler creates the nightly gap in coverage for the business-hours shift. Skyler selects a shift handoff of 5 and adds the SREs as responders as shown in the following image.

Business-hours shift in web service primary schedule.

Using the Schedule Preview, Skyler verifies that the business-hours shift is configured correctly. As shown in the following image, Alex is on call Monday through Friday from 8 AM to 5 PM for one week, and then Deepu, the next responder, takes over.

Schedule Preview for business-hours.

Skyler creates a weeknights shift

Next, Skyler creates a weeknights shift in the primary schedule for the web application. Using the Day-by-day shift type, Skyler creates the daily gap in coverage they need for the business-hours shift. There are only four weeknights to cover because Fridays are covered by the weekends shift, so Skyler selects a shift handoff of 4. Finally, Skyler adds the SREs as responders, as shown in the following image.

Weeknights shift in web service primary schedule.

Using the Schedule Preview, shown in the following image, Skyler notices that because of the way the responders are ordered in the shifts, some responders have a weeknights shift that immediately follows their business-hours shift. The order of shifts that Skyler sees is shown in the following image.

Schedule Preview with back-to-back responder shifts.

Skyler reorders the responders so that the responders have a week off between their business-hours shift and their weeknights shift. Skyler then uses the Schedule Preview, shown in the following image, to confirm that the responders are ordered appropriately.

Schedule Preview with reordered responders.

Skyler creates a weekends shift

Finally, Skyler creates a weekends shift in the primary schedule for the web application service. For the weekends shift, Skyler uses the Week-by-week shift type, as there is no gap in coverage, and selects 1 for the shift handoff. The following image shows the weekends shift within the primary schedule for the web application service.

Weekends shift in web service primary schedule.

Skyler wants the responder for the weeknights shift to be the same as the responder for the subsequent weekends shift. Skyler uses the Schedule Preview, shown in the following image, to confirm that the responders are in the correct order.

Weekends shift Schedule Preview.

Skyler creates a schedule for secondary coverage with a 24x7 shift

Skyler creates a new schedule for secondary coverage for the web application service and names it accordingly: Web application service - secondary. Skyler adds the WebApp teams tag again to make the schedule easier to find. The teams tag also sorts the list of responders so they’re easier to find and select when Skyler adds them to a shift later. The following image shows the new schedule Skyler creates with the teams tag.

Create a secondary schedule for the web application.

Skyler creates a 24x7 shift within the schedule for secondary coverage

Skyler creates a 24x7 shift in the secondary schedule for the web application. Using the Week-by-week shift type, Skyler creates 24x7 as secondary coverage for one week, Monday through Sunday. Skyler selects a shift handoff of 1 and adds the SREs as responders.

24x7 shift in web service secondary schedule.

Skyler adds the primary and secondary schedules to the incident workflow

Skyler adds the primary and secondary schedules as the first and second steps in the Incident workflow for the incident policy for the web application service. The incident workflow that Skyler creates is shown in the following image:

Add schedules as first and second steps in the incident workflow within the web application service incident policy.

Skyler enables the incident policy for the web application service

With the schedules configured and added to the incident policy, Skyler enables the incident policy so that alerts begin flowing and triggering incidents that notify the responders in the newly-configured schedules.

Summary

Skyler created the coverage they need by creating the following schedules and shifts:

  • A primary schedule for the web application service with two shifts:
    • A day-by-day shift for business-hours coverage

    • A day-by-day shift for weeknights coverage

  • A secondary schedule for the web application service with one shift:
    • A week-by-week shift for weekends coverage

Skyler added the schedules as the first and second steps in the incident workflow in the incident policy for the web application service. Skyler then enabled the policy so that alerts begin flowing and triggering incidents that notify the responders in the newly-configured schedule.

Learn more