(my eyes are closed, i don't fucking want to know. i just want you to see yourself right now.)
I think it's incredible that just about everyone still does this. 🥰 Some of the most impressive sites on the internet still rely on it. And I don't mean once in a while, I mean **RELY** on it.
I mean I know of multiple top-20 websites whose most reliable way of detecting runaway bots and bad actors is the cpu on their mysql primary gets pegged.
I mean, no shame. I'm not too proud for a quick, dirty and devastatingly efficient gross hack.
What about the bots that *aren't* greedy enough to slurp resources as fast as they can get them, for example? They go undetected forever.
And once you suspect you have a bot, you...reload the page a bunch. 😬😬😬
(usually)
or letting your eyes glaze over slightly as the log file tail -f's, so you can try to pick out a pattern with your eyeballs. 😬
What you actually want to do is sum up the usage of the constrained resource (probably a lock) and break down by who all is using it.
And they work for reactive firefighting. You can keep your site from dying, for the most part, by paging yourself whenever it gets close to death and needs a massage.
Here is a thought experiment I have been toying with...
Assume that downtime is not a huge concern. What *is*? What would you need to do a better job of fixing, how would you know if your changes were successful?
A FEW.
Leaning on paging alerts lets you cut corners on quality, skimp on instrumentation...and never develop the habit of going to _look_ at your changes as you are shipping them, or get neck deep in your own telemetry.
BUT WAIT IT GETS WORSE
This is how we build opaque systems of infinitely stacked brokenness that no one has ever understood.
This is by design. Flappy and borderline alerts are unacceptable.
So how many subtle bugs do you think you deploy but *not* catch that same day?
If you aren't instrumenting your code and going in every day to play with it, check on it, explore the world through it, and verify that it's doing what you want it to... 🌷you don't know🌷 how your systems work.