miamollie
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# How and why? Practicalities of the on call rotation at 99 This doc includes: - the How and Why of being on call at 99 - tools we use - Suggests steps to take when responding to an alert ## On call rotation :alarm_clock: Being on call means being available during a set period of time to investigate and fix production incidents for the systems for which your team are responsible. On-call responsibilities extend beyond normal office hours. You will be on call for shifts of 1 week, 24/7. When you are on call there is an expectation that you will: - always have your laptop with internet and a usable dev env - always have your phone/be contactable - be responsible in your choices of activities Being on call does NOT mean you are expected to know how to fix all alerts, or even be the first to respond. Only that you do your best, communicate, and escalate sensibly. ## Why? :thinking_face: At 99designs we follow the DevOps model - where development and operations are done by the same team. Not having a separate ops team means that our engineers are responsible for their code from start to finish. Understanding the broader implications of code you ship, and knowing it might wake you at 3am should influence the quality of your work. > "you wrote it, you run it" You are also best placed to understand the current state of the codebases (in theory..). Fortunately, we have a lot of systems in place to make it more difficult for us to deploy bugs (code review processes, automated tests in CI). When this does happen, we've got monitoring and alerting in place to make sure we can discover these bugs (or anything else that might be going wrong with our app/s) quickly. ## How? :calendar: There is an on call roster for each engineering team managed by the service [pagerduty](https://support.pagerduty.com/docs/notification-phone-numbers). You will be on call for 1 week (day and night). You are only on call for apps your team is responsible for. There are escalation policies in place meaning you are never solely responsible for being on call. ![](https://i.imgur.com/ULigNY9.png) You will be phoned, emailed, texted (depending on your settings) and our Slack channel will be pinged. You can set yourself up on pagerduty through the web UI, but there is also an app that is quite handy. Take the time to set this up how you would like. Tip: double check "do not disturb" mode on your phone doesn't block pagerduty, and consider adding the [pager duty contact](https://support.pagerduty.com/docs/notification-phone-numbers) as a "favourite". If you ever need to swap on call shifts, make sure to chat to your team and your engineering manager to organise this. Use your own best judgment for what qualifies for needing to swap shifts. ### Compensation :moneybag: You will be paid 10% of your normal hourly salary outside of office hours, for being available and ready to respond to incidents. This compensation applies to first-level on-call only. You will be paid 200% of your normal hourly salary while responding to incidents. This applies to anyone responding to an incident, including escalations. To be compensated you must fill out an [incident response form](https://docs.google.com/forms/d/e/1FAIpQLSfeRt1sCeryugb-7ZSaExvZCDpQfouMaJ8FzjUL3Qjodo4xmw/viewform). ## Tools :hammer_and_wrench: Can you access them, what are they good for? [Bugsnag](https://app.bugsnag.com/99designs/) Exception monitoring [Datadog](https://app.datadoghq.com/dashboard) Performance Monitoring [Papertrail](https://papertrailapp.com/dashboard) Server Logs (forwarded Cloudwatch) [Wormly](https://www.wormly.com/welcome) Uptime and server monitoring product. Used for checking specific URLs are 200 OK and/or contain a specific string. [Pagerduty](https://99designs.pagerduty.com/sign_in): On call roster, sends out alerts and escalations [99cli (a wrapper over aws cli)](https://github.com/99designs/99cli), [aws-vault](https://github.com/99designs/aws-vault), [chamber](https://github.com/segmentio/chamber): Tools for accessing prod servers and secrets ** PAUSE TO CHECK IF EVERYONE CAN ACCESS ALL THESE THINGS :D** Can you run the following: - `aws-vault exec platform -- 99cli logs /bastion/access.log` - `aws-vault exec platform -- chamber list abacus` It can be useful to have a browser folder of these links so you can rapid fire open them all when investigating. Make a habit of looking at datadog regularly, it helps to know what the graphs _should_ look like, so you can tell what is irregular! Similarly, spends some time lurking in your team's ops channel(s). What stuff is just noise, and why? Give yourself the goal of getting to the bottom of an error/alert, even if it's the 1000th time it's fired. ## Responding to an alert :fire: Although you are not ultimately responsible for _fixing_ the error/bug, you are responsible for the _alert_ once you have acknowledged it. This means you are responsible for coordinating a response and communicating (unless/until you hand over this responsibility). Alerts might come from: - Wormly (looks for content on a page// http response e.g. "critical") - Datadog (graphs of performance over time e.g too many 500s) - Cloudwatch (aws monitoring e.g. db, healthy host count) - Manually triggered by support or anyone at all by emailing `emergency@99designs.com`, or through pagerduty UI (something is broken, you've received an alert but you need to escalate to a different team) Keep calm and... **Acknowledge**: Step one! Otherwise it will escalate to the level 2 on call. You can do this via slack, the pagerduty app/website, or by responding to the texts/phone calls. **Triage**: determine the scope of the issue, what codebase, what users, how many users, is it ok-ish or :dumpsterfire: **Notify**: depending on the scope, communicate with other engineers, #announcements, support, designer forum or end users (noticebar) as you deem appropriate **Mitigate**: your primary job is to keep the plane flying, and minimise user impact. Do the minimum required to keep our service usable. Secondary to that is troubleshooting an ultimate fix. Sometimes doing _nothing_ is a valid option. **Escalate**: you are encouraged to seek help and support **Follow up** With a [(blameless) post mortem meeting](https://codeascraft.com/2012/05/22/blameless-postmortems/), and a write up. Follow up on action items from the meeting ### Investigating :mag_right: The alert itself will contain some information, start pulling on threads from there. Your next port of call could be the ops/readme of the app and our various monitoring services. Don't let assumptions cloud your judgment (I merged that PR earlier so it must be that||this thing is always alerting for no reason, it must be fine). Remember that everything happens for a reason. There are great blogs/resources out there on debugging, but ultimately practice makes perfect :) As you are debugging, it helps to leave comments in slack about what you think the cause might be, what you have tried so far - keep a log of what you are doing. Take screenshots of what graphs you can see and post in slack. This will help in the future, with post mortems, or if someone else jumps in to help out. I also suggest keeping a doc handy of commands you have found useful along the way so you need not search back through slack history i.e. how to ssh into a prod box, how to filter bastion logs.. ## Good reads :book: - Every codebase should have an ops/readme, definitely read them and update them as you see fit - Official 99 ops docs [here](https://99designs.atlassian.net/wiki/spaces/DEV/pages/31916207) - All previous postmortems available on confluence in that space^. - Dan wrote [some good notes](https://99designs.atlassian.net/wiki/spaces/DEV/pages/939819757/Dan+s+rough+notes+for+being+on+call+for+the+php+schedule) - Google SRE books: https://landing.google.com/sre/books/ - [Strategies for fixing an incident](https://99designs.atlassian.net/wiki/spaces/DEV/pages/31916229/Strategies+for+fixing+an+incident) - [Giacomo's notes](https://hackmd.io/Ye3yveHyRGqVR7d9S5iryA) on addressing an alert

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully