Esteem in Database Reliability

Words
419
Reading
2 min
8y
Listen to this post
~3 min

DSC_9351.JPG

Esteem is the highest of the needs in the pyramid. For human, this means respect and mastery. For databases, this means things like observability, debugability, introspection, and instrumentation. It's about being able to understand your storage systems themselves, but also being able to correlate events across the stack. Again, there are two aspects to this stage: one of them is about how your production services evolve through this phase, and the other is about your humans.

Your services should tell you if they're up or down or experiencing error rates. You should never have to look at a graph to find this out. As your services mature, the pace of change slows down a bit as your trajectory becomes more predictable. You're running in production so you're learning more every day about your storage systems's weaknesses, behaviors, and failure conditions. This can be compared to teenager years for data infrastructure. What you need more than anything is visibility into what is going on. The more complex your product is, the more moving pieces there are and the more engineering cycles you need to allocate into developing the tools you need to figure out what's happening.

You also need knobs. You need the ability to selectively degrade quality of service instead of going completely down, i.e.:

  • Flags where you can set the site into read-only mode
  • Disabling certain features
  • Queueing writes to be applied later
  • The ability to blacklist bad actors or certain endpoints

Your humans have similar but not completely overlapping needs. A common pattern here is that teams will overreact once they get into production. They don't have enough visibility, so they compensate by monitoring everything and paging themselves too often. It is easy to go from zero graphs to literally hundreds of thousands of graphs - 99% of which are completely meaningless. This is not better. It can actually worse. If it generates so much noise that your humans can't find the signal and are reduced to tailing log files and guessing again, it's as bad or worse than not having the graphs.

This is where you can start to burn out your humans by interrupting them, waking them up, and training them not to care or act on alerts they do receive. In the early stages, if you're expecting everyone to be on call, you need to document things. When your are bootstrapping, you have shared on call, and you're pushing people outside of their comfort zones, give them a little help.