Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. you are an sre/devops that owns a web server
  2. this web server can throw errors, and it self reports error rates
  3. the error rates are returned at discrete time steps (for example, every 5 minutes)
  4. you want to know if the server is unhealthy, that way you can stop playing ping pong
  5.  
  6. a server is unhealthy if the average error rate in a period exceeds some threshold
  7.  
  8. question:
  9. determine if the server is unhealthy at a particular time
  10.  
  11. example:
  12. error rates [ 0.1 0.2 0.9 0.9 0.3 0.1 0.01 ]
  13. these are error rates at time 0, 1, etc
  14.  
  15. for a period of length 2, and time 1, with threshold 0.5, the server is unhealthy
  16. for a period of length 3, and time 6, with threshold 0.3, the server is healthy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement