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
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.
Replies (5)
Replies (4)
Replies (3)
Replies (1)
Replies (1)
Laptop manufacturers should be mixing it up but they might find it more useful to have the failures clustered.
Western digital also lied about their CMR tech in their NAS grade drives.
If one is using something like a synology, they are generally reliable and can run for 5-10y before anyone notices they’ve had it that long.
Replacing drives at the 5-10 year range can happen naturally if the rain needs to be eventually grown as well. Having a spare drive on hand is something to factor into the original cost.
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.
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.
Replies (1)
Smart drive notifications is key
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.
Nothing filled blindspots in staff documentation more than those findings.
Replies (6)
I miss it though. Somewhere down the line the expectation bar has gone down in a circular fashion
Replies (1)
I imagine the answer to the question "Does the disaster recovery plan work?" is probably similar to "Do you backups work?".
In flight training you rarely do "multiple unrelated failures" because you need tightly controlled scenarios for fair and efficient assessment. In ground school (or when you have extra time in the simulator) you can think about the systems and environment in more detail and be creative in solving bizarre, unrealistic problems. For experienced people doing the same thing every day this is a great opportunity for learning a couple times per year.
Meanwhile somewhere else, dedicated servers were used heavily but failover happened monthly at most, but regularly more often.
Replies (1)
Data recovery?
EDIT: Wrong! It's "disaster recovery".
Replies (1)
Replies (1)
Replies (1)
One time a technician messed up the switch, and the next time the switch started overwriting current data with old data (part of the switch procedure involved switching storage sources from a site to another).
Another time a technician went the extra mile to fix the current site rather than do a failover because they hadn’t ever executed the failover procedure and wasn’t sure they could make it work correctly (the technician that had originally setup the DR failover had left the company and the current technician was fairly junior). Btw the junior technician from this specific episode was me circa ten years ago.
DR procedures can often get very complex and technical, not really just a matter of ticking boxes left and right.
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.
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.
...and test the entire chain, up to and including paging on-call.
You do have alerts for fail over events, right?
One direct advantage: This lowers the risk of negatively impacting production, because it doesn't touch production.
But much better, it acts as a continuous restore test, at least of yesterday. I can certainly construct many ways why this could be insufficient, but I know yesterdays backup can be restored. That's more than quite a few teams know.
At the low price of enduring a bit of latency, which is fine for a lot of business processes.