196 points · by tjwds · 3y ago · 212 comments
And I get that this is a good mindset for not wasting space overall, but if a single backup fills 90% of your storage space in test use, that machine is not ready for production. And we are not talking about a lot of space here. The backup was maybe 30 Gb the disk 40 Gb. He could have easily just allocated 100 Gb and call it a day, this way we had to go to him 3 times to scale it up in 10 Gb steps each time, including a the stress of figuring out why things are failing (something that the admin should have seen on his monitoring system).
Admins are my heros, but please if you allocate disk space, just take the biggest expected backup and multiply it by π. And if you need to be stingy with storage for some reason, be stingy, but decide when and where to be stingy — and at least keep an eye on the monitoring and upsize the storage before it is too late.
They set all applications to "debug" level logs in production and were generating multiple gigabytes of logs per hour.
They wanted 90 days retention, and the ability to do advanced searching through the live log data so they could debug in production (they didn't really use their dev or stage environments, or have a process for documenting and reproducing bugs).
So what? Just buy more. Storage is cheap.
It's hard to have a discussion here without understanding the scales involved. Is the problem that they're wasting 100 GB or 100 TB? And if the issue is truly that they're wasting 100 TB, then clamp down on it as part of cost reduction efforts. The truth in most organizations is you get rewarded for eliminating mountains of waste, but trying to prevent the waste in the first place brands you as someone difficult to work with who is standing in the way. Why not lean into that?
But this way, I directly get an idea of the increase in storage we will need over the next year in order to plan the next hardware expansion.
As soon as the soft limit is hit, fire off an alert. Have the hard limit set at double or more.
If you just "I want 20 GB of storage", i'm not going to give it to you.
Storage is cheap in relation to other things. Just have a good reason to why you need it.
So, you are not expecting that your co-workers have good reasons for what they are doing? Maybe the hiring bar at your place is too low then.
I prefer to work at places where my default assumption is that everybody around me is smart and responsible. Lifts lots of worries off my shoulders (and tends to benefit the stock price over time too and thereby my income).
Are you going to rearchitect my system for me?
But, unlike Toyota, we do have disk space alerts.
Sometimes the problem is also entirely political, the management needs to tell client and charge them for more storage and won't accept the change till that happens. Meanwhile clock is ticking...
The problem in this case was twofold:
- admin had the job to implement database backups. He didn't factor in backup size when allocating disk space. So this was wntirely his own fault.
- the database does store certain transactions for a certain period, so this grew initially until it it setteled at a certain level. Because the margin of storage was slim, this caused the problem
The instances for the service itself had 20GB of EBS allocated to them. Luckily they don’t need much local storage. But that’s typical here. There’s a Jenkins instance that is even more of a pain. I’m not responsible for it but every week or two one of the worker nodes runs out of space because they’re given 8GB of storage space. I’m just watching the disaster unfold over the course of a year and a half as I’m constantly telling that team to just up the storage space on the worker nodes instead of constantly having to fiddle with cron jobs.
It’s not even an expense thing. They just… don’t want to increase the storage space. It drives me insane.
I'm not saying this is real, but the worry certainly is.
Or comparing the cost of one store not being able to open on time because the RDS database's space ran out. VPs and directors start yelling and there's suddenly like 20+ people involved in figuring out why this one store didn't open on time. What's the cost of that compared to just giving the DB 250GB of space so this never comes up again?
But you are also 100% correct and I've seen that happen here, too. There's some instances I'm responsible for that were using EFS for their local storage. Costing thousands of dollars every month for absolutely no reason. I switched those to reasonably-sized EBS volumes and that alone was half of my annual savings goal.
I was completely flabbergasted seeing these instances using EFS while others were stuck on 8GB EBS volumes. Backups on the EFS drives had ballooned to the many TBs. And the backups were worthless! Instances themselves are ephemeral. They use S3 for long-term storage & metadata is on a database. Those are the things that should be backed up & their cost compared to EFS is minuscule.
I don't excuse wanton waste of storage because it's easy for sloppy practices to balloon to massive confusion and inefficiency. But that discipline should be enforced by good engineering practices, not by limiting resources.
All Flash arrays will get even more $$$$
Price out a Nimble or PureStorage array can see if they will sell you 12TB for $800... I will wait.
When would we get new filers?
Dunno, because the datacenter was also full.
Unfortunately, this strategy frustrates users who have a genuine need to expand storage and who are unable to efficiently obtain an exception to the process.
Everywhere I’ve seen that strategy tried had massive overspending and outages due to it. What’s worked best is cloud style usage billing because that aligns the incentives with the people making the decisions, but it’s really non-trivial to get the accurate full cost.
One week goes by, people are living with the error and adjusting the factory to work around that. Many meetings, etc.
Network engineer pulls me to the side and says "you seem like a nice guy, stop worrying about this issue. we won't fix it because if we do, this server becomes ours and we are responsible for this app.. so nobody will touch it. yes, the cable to that server needs to be redone. yeah we won't do that"
I stayed there for 10 months and quit.
At $DAY_JOB we recently scuttled most development efforts for a week for our teams. Our nightly backup job that sanitizes PHI ballooned overtime to, say, 20GB+1Byte and ran out of disk space. Because we are running Kubernetes on Fargate we don’t need a full time operations guy, right?
Commence the company (me) scrambling to learn how to use a Peristent Volume and Peristent Volume Claim because a career programmer should be able to perform systems administration takes because DevOps has the word “Dev” in it, right?
So we lost a week of productivity to disk space, but in reality we lost a week to poor personnel and capabilities.
In the end what you have is a stack of technology that the company cannot actually maintain on their own. Now I know that 'shoulders of giants' is a thing and that we shouldn't expect everyone to be able to do every part of work that came before them, but as your example shows it is a real business risk when things go south. Part of the original promise from these providers was that there would be a 90%+ reduction in supporting work, when we all know the reality is that you become specialized in solving issues with Heroku/AWS/providerX
For all but the most simple setups, providerX solutions are still better than maintaining your own bare metal solutions with their associated hardware / software / datacenter vendor relationships.
Also, it’s not hard figuring out how to stand up a datacenter if it comes down to it and you want to pivot at some point. What’s actually hard is _growing_ and _distributing_ your datacenter to meet demand / legal requirements.
It's not k8s or anything else that makes it hard/easy. Maintaining and keeping stateful services running the long run is what's a bit tricky.
That’s the neat thing about this whole ecosystem, it’s a solvable problem!
Turns out the ping testing device was last configured with the IP of a critical application server that talks to every device in the plant. When the colleague pressed the button, every plant device stopped contacting the apps server and the plant went down. Unplugging the device eventually fixed it. The line was stopped for 7 minutes. I believe stoppages were usually quoted at tens of thousands of dollars per minute and billed to the responsible department.
I remember how stressed everyone was after and meetings for root cause analysis in the following days. I was always surprised at this considering how frequently the line went down for small amounts of time, and they never seemed as big of a deal as that one specific time, though for the others we were not responsible.
Every single time the line stopped, no matter why, it was estimated to cost, at absolutely minimum, $1 million dollars.
That should’ve used the old trick. Create a big empty file inside the server (i.e. delete_me_in_case_of_need.txt with size a few GBs) and delete that in case of emergency. This will buy you some time to take the necessary actions ;-)
There's a talk from someone at a high-volume adult entertainment site which used this trick too - can't remember which one.
As told, the caching functionality in a key service had an artificial 10ms delay added. When things got tough, it was an easy change to disable the delay.
Factory downtime is the single biggest cost a manufacturing shop can incur. No amount of working capital savings from carrying fewer screws, widgets, and bolts can offset the costs of taking 14 plants down due to penny wise, pound foolish math.
Please provide a citation for how JIT manufacturing cost TM "far more than it saved them"?
I do not have any skin in on the game as to how effective or not JIT is, but wouldn’t the correct question be, how did Toyota fair vs non-JIT companies? As GP was implying, JIT is fine day-to-day, but can make failure conditions worse.
that's how it saves you far more than it can cost you through such a quite unique event as the one of this news article.
controlling JIT was originally done with little "kanban" paper slips, which pulled in the next batch of work. those are the origin of software "kanban", too, the software engineering "pull" workflow.
Reducing the amount of parts on hand saved them money and made them more efficient.
The cause? / filled. It was configured at somewhere around 80GB. There was a scratch volume on the VM as well, also 80GB.
Recently the machine was upgraded to a newer version of Ubuntu, that used a Snap for Chromium. tmp on the Snap wasn't on the scratch drive like on the old version, it was in /tmp
For some reason, ops never set a watch/alert on that disk. That would have prevented the issue.
One of my servers utilized 50% of the allocated space and the "low disk space" alert was set to go off at 80%.
Management came up with an idea - why not reduce it to used space + 20% of used space. That way we save a lot of space.
I had to explain them simple math - if the space is 100GB and I utilize 50GB then the proposal was to have 60GB on the server. But 50/60 is already beyond the 80% alert. And if the target was lower at say 70% alert then we needed at least 22GB i.e. used space + 44% of used space to make it work. It was mind boggling that people can't understand simple ratios.
The most maddening part was that no one could explain the savings if the space was reduced. People making noise said we could "avoid costs" while forgetting that used space is already cost, you cannot "avoid" it.
> servers that process orders for vehicle parts broke
This is the thing that does the JIT. The JIT broke. That's why they mention JIT.
The order for a seat or mirror or door handle doesn't exist at the tier 1 suppliers where my equipment gets installed until 10 hours before it is needed. At that point, my PLC gets a request to induct a particular part number and paint color into the manifest, inducts it and acknowledges that request, the machine builds it, laser-marks a serial number onto it, tests it, uploads the test results with serial number to the database, packs it out into a foam-lined box or a dedicated nest and uploads the box barcode to the database, that box gets loaded onto a pallet, the pallet into a trailer, the trailer drives 20 minutes away to the OEM, and the trailer gets unloaded (in reverse order; truck size and the resulting last-in-first-out queue is one of the main drivers for JIT lifetimes) so the parts land at the assembly line just a couple hours before the vehicle they belong to is ready to receive them.
You'll notice that this does not leave a lot of wiggle room for anything to go wrong. When I'm physically a 5 hour drive away from the plant, it's not like I can drive to the site, debug a wiring issue, order a replacement widget online - even by UPS Next Day Air Early A.M. - and then install it on-site before holding up literally millions of dollars worth of production. And my little mirror line is just one of hundreds of parts that need to arrive on time.
Toyota to restart Japan production on Wednesday after system failure - https://news.ycombinator.com/item?id=37303569 - Aug 2023 (66 comments)
Funny thing that if you get any book about Toyotism and Lean, this warning is around the first things you see. You only optimize until you start seeing problems, then you either stop or improve things so the problems don't happen anymore and you can move further. Well, looks like the management at the company that led this culture is forgetting the lesson.
It seems like Toyota identified the issue and got things running again quickly enough. This does not at all seem like a good case study for exploring the risks of JIT.
I read The Guardian regularly and will continue to, but they sometimes go out of their way to find an anti-business angle.
https://blog.mailpace.com/blog/postgres-outage-post-mortem/
Luckily, we only went offline for about 2 hours, but glad to see behemoths like these suffer from similar issues...
https://support.microsoft.com/en-us/windows/windows-xp-suppo...
> extraction games for unwanted features
https://www.theverge.com/2022/7/12/23204950/bmw-subscription...
Also just removing some stuff up wasn't working.
For example, Google says that by default ext4 will reserve 5% of disk space.
So depending on your system, a “100% full” drive might still have a (sometimes significant) bit of space left.