If you want failover to work well, use it often (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (2)
I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability.
Replies (5)
I did all but the last mile on autoscaling work. I thought we needed about three months more work, the guys who took it over decided it needed to be done in time for year end performance reviews. They skipped things and also ignored my advice on tuning parameters. Twelve days later we had the worst outage in two years because they didn’t account for unknown unknowns while I did. A bug in Operations’ Terraform did not preserve current machine count during a redeploy, and their initial min cluster size was laughably small.
In my next 1:1 I told my boss it was worse than that because they held a vote to ignore my advice of ramping down instead of jumping to best case. My boss was as appalled as I had been. Fucking told you so.
By the time they had dialed it in they had exactly the settings that I proposed which they thought weren’t aggressive enough. The fact that my numbers were not that compelling is why it had been my priority 3 instead of Priority 1 in the first place. It didn’t actually save us all that much more money than I already had with the work up to that point.
Our reloadable config system needed Consul to be up and populated during bootstrapping. If it went down any time after that it would fall back gracefully to the last known configuration and exponentially back off. In situations like that, turning off a server for 20 minutes a day is an increase in risk with zero upside, since billing doesn’t even work that way!
At the end of the day I think I probably didn’t make enough of a stink about how much and for how long I had been working on that problem and how it was foolish to reassign it at that point in the process. At a minimum it should have been all three of us with me cross training.
Give a distributed computing problem to people with no formal training and they always ask how hard could this really be. Real hard, but also not if you commit to do some counterintuitive things religiously.
Replies (1)
And pay the AWS Config tax (if you use AWS). I mean, literally pay, as in it will cost you extra money if you use autoscaling a lot and have a poorly configured AWS Config setup.
I'm not actually sure you really need to chase after slow leaks? It feels dirty, but honestly, restarting each part of the system randomly around once a day is good anyway. (Or once a week as you say.)
If you can leak faster than that: sure, fix it. But if you slowly leak a few MiB per hour of running, you might just ignore it?
Replies (2)
If there is a bug, no matter how minor, fix it before any other feature work is allowed. That is the only sane way to keep a system sustainable.
> Subject: Re: Does memory leak?
> Date: 1995/03/31
> This sparked an interesting memory for me. I was once working with a customer who was producing on-board software for a missile. In my analysis of the code, I pointed out that they had a number of problems with storage leaks. Imagine my surprise when the customers chief software engineer said "Of course it leaks". He went on to point out that they had calculated the amount of memory the application would leak in the total possible flight time for the missile and then doubled that number. They added this much additional memory to the hardware to "support" the leaks. Since the missile will explode when it hits its target or at the end of its flight, the ultimate in garbage collection is performed without programmer intervention.
Replies (1)
I've seen so many projects get bitten somewhere down the line by such shortcuts. Much easier to fix them when they're first created than to hunt for them a decade later in a codebase that was supposed to be proven in the field, but suddenly stopped working properly.
But I wouldn't necessarily aggressively restart servers that rely on netboot or other quirky, non-self-healing tech (systemd service ordering, DHCP, various VPN and network drive implementations)
Replies (2)
And in an emergency you might want to restart your system anyway for other reasons (like rolling out a fix), so having that path well-trodden is good.
Replies (1)
In the 1990s more than one company learned this the hard way. The mainframe had more than 10 years of uptime - every component was hot swap-able and that was tested often enough. However when the disaster (I heard stories from people who couldn't talk about details so I'm not sure what) took out all power and the generator - the system couldn't reboot because so many services that were started manually over the years by someone who since left ... nobody had a clue how to start them anymore (many needed some other unknown services running first). It took months to figure out what should be running and get the system back.