Hacker News new | ask | show | jobs
by t0mmel 1908 days ago
What I don’t understand about this approach is why you think it actually does anything for you ? What you do instead of this is to setup an alert to monitor disk space at the right threshold for you, and then have a contingency plan for how to add more space to your environment.

It seems like you have sort of done that, but in this case you are actually allowing your system to get into a bad state before you react.

Perhaps it’s better to be proactive instead of reactive.

2 comments

This is true, but alerts and monitoring software can fail in many ways, due to network issues, process crashes... Etc.

Due to the simplicity of this solution, there's not much that can go wrong.... unless you can't actually access the server anymore to delete the file...

I see this more as a second line of defence

If the monitoring fails to alert you, you don't get the alert that you're running out of disk space and you can't access the server to delete the spacer file. All you've done in that case is lower your disk space by 8gb and make your server fill up more quickly.
Setting up alarms sounds complicated. I don't want to deal with that.