by jedberg · 6y ago · 0 comments
For us to measure our success in increasing availability, we first had to figure out a way to measure availability.
We came up with a multi-pronged approach. The first thing we did is figure out how to predict how much traffic there should be at any given time. This was basically using historical data to determine the shape of the curve and then adjusting it to fit current traffic.
Then we would figure out how far off of the predicted traffic we were and the was our downtime.
Since we also had control of the client experience in almost all cases, we were able to measure from the client side as well (and trust that data), and include that data in our measurements.
Where things got interesting was when say a large ISP was down. A bunch of people couldn't get to us, but that wasn't really our fault (or was it?). At the end of the day the users didn't care if it was our fault or their ISP, so we counted that against ourselves.
All of this is to say that yes, it's really hard to figure out uptime, especially for distributed systems where almost every failure is a partial failure.
But at the end of the day your users don't care which microservice or network segment was at fault, they only care that they couldn't use the product.
The W3C Network Error Logging specification now allows websites to register client-side errors (DNS, TCP, TLS etc.), record them offline, and send them via side-channel telemetry to a different endpoint later on. This has changed how we measure client-side availability on browser-based services.
Chromium-based browsers (68+) support this feature, enabled by default.
>> Where things got interesting was when say a large ISP was down.
NEL also helps the service owner determine with some level of accuracy whether a problem in an ISP is specifically related to the service, or to the ISP
{disclaimer: work for MSFT, specifically on NEL-related tech}
Even every 2011 LG TV failing at once falls below the noise floor, unless you're specifically looking for it.
But if your are specifically looking for outliers, than a single bad actor can really mess up your day.
However, if NEL is run globally, it just becomes a part of the noise floor (someone else mentioned this as well), and to do effectively with malice will require doing this 'at scale' (that fav. phrase). So far, we haven't seen changes in the outcomes from telemetry analysis.
One way of removing malicious noise could be to apply the same bot-detection capabilities for NEL that you apply for the service its monitoring.
So... what did you do about that?