308 points madflojo 9 hours ago 83 comments
stackskipton 9 hours ago | parent
Coupled with most companies rarely need uptime they claim they need. Most companies I've worked at, downtime rarely resulted in lost revenue.
mlhpdx 8 hours ago | parent
With my own company I started doing zero downtime deployments (I run hot/hot over multiple AWS regions) literally from day one. Our rate of rollouts has been slower this year than last, with only about 1,500 so far.
Constant failover is a big win in my experience. Hard to retrofit, though.
trollbridge 9 hours ago | parent
Once you trust your HA, you just take the server or service offline, do what you need to do, and then turn it back on. And you have a backup plan of “it’s trivial to just spin up a new server because we made sure to test that regularly, too”.
Occasionally we do “pull the power cord” (or more realistically tell the ups/peu to turn it off), and then testing that AMT/iLO/iDRAC/whatever functions to turn it back on. If you have things set up properly this can all happen with almost no effort via an agent harness.
The same is true if you’re relying on clustered storage or RAID at all. You’d better periodically just fail over off a drive (and should do this rolling) instead of waiting for a drive to fail.
j45 7 hours ago | parent
bonoboTP 7 hours ago | parent
dapperdrake 6 hours ago | parent
hinkley 4 hours ago | parent
toast0 7 hours ago | parent
There have been firmware issues across multiple manufacturers where a lifetime counter rolled over and made the drive inaccessible ... if you knew in advance, you could pull those out of service before they failed, but how would you know.
For personal drives, I try to buy one at a time or at least bring them up a few weeks apart. For work drives, sometimes you just end up with a huge batch of servers coming online at the same time. Hopefully backups go to different systems.
trollbridge 7 hours ago | parent
I generally run RAID-1C3 plus a hot spare (periodically take it to C4, and then back to C3 to rotate what the hot spare is), with a cold spare on the shelf. With CephFS it’s a bit different but basically the same idea.
throwaway270925 5 hours ago | parent
Use (soft)RAID, have hot spares, done.
Lemon drives usually fail within the first weeks, good drives keep running for years long after their 5th birthday.
rskeens 5 hours ago | parent
Nothing filled blindspots in staff documentation more than those findings.
sandeepkd 5 hours ago | parent
I miss it though. Somewhere down the line the expectation bar has gone down in a circular fashion
hinkley 4 hours ago | parent
jamesfinlayson 2 hours ago | parent
Meanwhile somewhere else, dedicated servers were used heavily but failover happened monthly at most, but regularly more often.
hinkley 4 hours ago | parent
xyzzy_plugh 3 hours ago | parent
I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability.
rednb 3 hours ago | parent
hinkley 3 hours ago | parent
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.
Spivak 23 minutes ago | parent
PhilipRoman 3 hours ago | parent
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)
hinkley 2 hours ago | parent
quisquous 9 hours ago | parent
pizzafeelsright 8 hours ago | parent
Confident "yes"
And then I would put my finger on the tab to pull a drive.
If they didn't flinch I would pull the drive out.
theokrueger 8 hours ago | parent
j45 7 hours ago | parent
podocarp 50 minutes ago | parent
nomel 7 hours ago | parent
LoganDark 11 minutes ago | parent
The SSD had lasted 9 years, served me well. Rest in peace.
al_borland 6 hours ago | parent
Some nights I would pull dozens of drives. I guess we had a lot of trust in the RAID.
esikich 5 hours ago | parent
tonymet 8 hours ago | parent
The Devil is in the details, and because many tech solutions are a hodgepodge of open source, commercial and home grown components, the failover strategy also needs investment.
Convincing me to do more failover drills is not the hurdle needing overcome. Unlocking the budget to develop and exercise the protocols is the hard part.
simonw 8 hours ago | parent
solatic 8 hours ago | parent
Not an excuse. Run a parallel environment that isn’t customer-facing if you’re forced to so that you can drill. Either you’re going to disrupt your customers or an act of God will, and your customers won’t let you scapegoat God.
thakoppno 8 hours ago | parent
In my experience, the issue with this is simulating production in a meaningful way. Let’s say you have 10k mobile users, how can traffic approximate that well enough with network conditions, p99 user behavior.
It’s as good as possible but like parent points out, not necessarily worth it.
tonymet 4 hours ago | parent
computerdork 8 hours ago | parent
Worked at company that did this. Didn't know why at the time, but seems like a really good idea.
tonymet 4 hours ago | parent
computerdork 12 minutes ago | parent
And one thing they did to mind money is they kept their engineering team small, ~500 people, and this was before AI. At that time, they should have had 50% more engineers, because most were being worked to the bone. It was a very stressful place to work (but learned more in that one job than all my other jobs combined).
j45 7 hours ago | parent
With software and solutions, until that exists, there is no failover. Whether it's how a cloud is used, or self-hosting on resources works, or a hybrid.
Disaster planning and other risks are things accounting departments can usually get behind to test and test often. The cloud can seem alluring to pay instead but it doesn't always work out.
XorNot 6 hours ago | parent
What works with say, 10,000 files might still work 10,000,000 but on no timeframe anyone can tolerate.
torvald 8 hours ago | parent
dangoodmanUT 8 hours ago | parent
There aren't "normal" and "recovery" reconfigurations, there's just recovery (with a few exceptions for planned maintenance).
This means: 1) simpler code, 2) you're constantly testing the recovery path, and 3) the recovery path is designed to be quick because it's constantly happening
hinkley 3 hours ago | parent
I see people do the same thing at work all the time. You can hurt yourself trying not to hurt yourself. People try to make the happy path wider and deeper and let the corner cases get more expensive and use bad statistical thinking to justify it as an improvement. But the corner cases can come in clusters, and people train themselves to not see those clusters in the telemetry. But the customers see it, and the disconnect makes it worse.
starcommander 8 hours ago | parent
romanhn 8 hours ago | parent
When I was at PagerDuty we regularly ran Failure Fridays (perhaps they still do). The goal was to identify a victim sub-system and start applying all sorts of failures to it - excessive latencies, dropped server connections, availability zone outages, etc. It was all done in a controlled manner, with the operations team sitting together with the service owners. The idea was that even if there is an impact to the customer, it's much better to catch it now and fix the underlying issue with many eyes on it, rather than a bleary-eyed on-call dealing with it in the middle of the night. This sort of exercise was very scary to get started with, and only minimally-impacting failures were introduced, but over time we got to the point where we were comfortable with simulating a full region outage.
That said, such investments in reliability made sense for PagerDuty. If a company can survive just fine with 2-3 nines of availability, it's a lot harder to make the business case for it.
mock-possum 7 hours ago | parent
k3vinw 8 hours ago | parent
j45 7 hours ago | parent
plandis 7 hours ago | parent
bonoboTP 7 hours ago | parent
There is such a thing as overkill and using a sledgehammer to crack a nut. It's like when everyone wanted to introduce Kubernetes because Google uses it. Chaos monkey etc are great ideas but diving super deep into this with a prepper's paranoia for all kinds of dreamed up contingencies can be a form of procrastination, unless a business case can be clearly articulated.
The_Blade 7 hours ago | parent
intrasight 7 hours ago | parent
bonoboTP 4 hours ago | parent
And I think it can be procrastination like when people optimize their lifting regime to the death and buy all the gear but don't end up going to the gym much. When you don't know what to implement, adding more alerting, more testing, more automation layers can be a convenient infinite time sink. You can always add more of this. More monitoring monitoring the monitoring.
Bonus: I do know about and use AI agentic engineering for these things. Still there is a limit. The limit is higher than before, but not infinite.
ianburrell 2 hours ago | parent
Kubernetes makes reliability easy and leads to better practices. It used to be reliability was hard, but using the cloud turns day of outage into something unnoticed.
bombcar 1 hour ago | parent
Blackarea 7 hours ago | parent
allthetime 7 hours ago | parent
Blackarea 6 hours ago | parent
allthetime 6 hours ago | parent
Of course management is often prone to over doing this, and managing engineers are prone to over building.
This is more a general business & people problem that applies to all areas though
godisdad 6 hours ago | parent
If you choose to acknowledge the risk you can price the risk or not price the risk.
If you choose to price the risk you can fund the risk.
If you fund the risk you are managing the risk.
I know people who drive around without car insurance, other people who don’t have life insurance. There are also people who are over insured at the other end of the spectrum.
It depends on what you’ve promised people giving you money and what you’re going for.
jiggawatts 7 hours ago | parent
All of my deployments are zone redundant and all sites are always serving live traffic. Databases write in only one zone but read-only workloads are steered to the replicas at the other zones.
This leads to hilarious audit workshop conversions.
“How often is the secondary site tested?”
“All the time.”
“What does that mean? Monthly?”
“Continuously.”
“Daily?”
“No, it’s tested all the time, moment to moment, request by request. All day, every day.
“Ooookaay… I’ll put down ‘daily’ on the form.”
hibikir 5 hours ago | parent
jiggawatts 4 hours ago | parent
I typically work on systems with negligible load, so this isn't an issue for us.
In the past I did work at an organisation with a large user base where more than a hundred physical servers dedicated to a single app was normal. They had a data center with power issues that would experience frequent brownouts, which eventually forced every team to make their apps fail over automatically and robustly. This included having spare load capacity to handle double the normal load at the remaining DC.
I always found it ironic that "frequent power issues" caused availability that was better than it was before the power issues started!
arend321 6 hours ago | parent
datadrivenangel 3 hours ago | parent
sovrius 5 hours ago | parent
stroebs 5 hours ago | parent
A few years ago it took 8 hours and 10-15 engineers to release software (Oracle DB-backed, running migrations + deployments done on inactive nodes first). That’s down to 1-2 minutes and a single engineer now, and pushing for on-demand releases. Not too bad for a company founded in the nineties.
green-salt 5 hours ago | parent
andrewguy9 5 hours ago | parent
hinkley 4 hours ago | parent
And to make any process popular, you also have to make it far more robust than you would have thought, because people judge on incidents per unit time not incidents per 1000 instances. Anything you want used 2x as much needs to aim for 4x stability. You will underestimate use and overestimate your improvements so you need a safety margin to reduce overall incidents per month.
rr808 4 hours ago | parent
Choad_20261104 4 hours ago | parent
In a like mind, I try to be certain to spend a few days with mains power turned OFF to prove that backup battery is still able to failover and to sustain for a minimum duration. I log the KW hrs utilized and the battery SOC after each instance.
wjholden 3 hours ago | parent
I have an opinion that uptime is largely a vanity metric. It might feel nice to have a year of uptime on a router or server, but not if it has been a year since said device got updated.
It is a bad sign if management will not approve maintenance because they cannot accept downtime. The loss of any single device should, ideally, not create any outage. If it does, then this indicates a flawed system architecture. I like to frame it as, "this thing is so important that we can't maintain it."
connicpu 2 hours ago | parent
contron 1 hour ago | parent
vector_spaces 1 hour ago | parent
bombcar 1 hour ago | parent
BWStearns 1 hour ago | parent
Failover is a great example because in many business cases you _have to_ be good at it when you have the very bad day, but there are ways to avoid it in steady state.
[0] E.g.: Complex authz logic, deploys, interactions with a fragile remote service, etc. [1] Obviously you shouldn't just cover the happy path, but you and the people you work for probably like money and it will be hard to justify pre-bulletproofing some edge case than the median one.
awesome_dude 1 hour ago | parent
ww520 29 minutes ago | parent