logoalt Hacker News

Running Out of Disk Space in Production

91 pointsby romeslast Friday at 2:42 PM40 commentsview on HN

Comments

flanflytoday at 11:50 AM

A neat trick I was told is to always have ballast files on your systems. Just a few GiB of zeros that you can delete in cases like this. This won't fix the problem, but will buy you time and free space for stuff like lock files so you can get a working system.

show 14 replies
dirkttoday at 2:13 PM

If you run nginx anyway, why not serve static files from nginx? No need for temporary files, no extra disk space.

The authorization can probably be done somehow in nginx as well.

show 2 replies
entropietoday at 12:37 PM

> I rushed to run du -sh on everything I could, as that’s as good as I could manage.

I recently came across gdu (1) and have installed/used it on every machine since then.

[1]: https://github.com/dundee/gdu

show 4 replies
gmusleratoday at 2:41 PM

Putting limits on folders where information may be added (with partitions or project quotas) is a proactive way to avoid that something misbehaves and fills the whole disk. Filling that partition or quota may still cause some problems, depending on the applications writing there, but the impact may be lower and easier to fix than running out of space for everything.

bdcravenstoday at 1:39 PM

I appreciate the last line

> Note: this was written fully by me, human.

huijzertoday at 1:36 PM

> Plausible Analytics, with a 8.5GB (clickhouse) database

And this is why I tried Plausible once and never looked back.

To get basic but effective analytics, use GoAccess and point it at the Caddy or Nginx logs. It’s written in C and thus barely uses memory. With a few hundreds visits per day, the logs are currently 10 MB per day. Caddy will automatically truncate if logs go above 100 MB.

brunoborgestoday at 1:59 PM

I remember a story of an Oracle Database customer who had production broken for days until an Oracle support escalation led to identifying the problem as mere "No disk space left".

show 1 reply
tcp_handshakertoday at 1:14 PM

[dead]

giahoangwintoday at 1:34 PM

[dead]