Root Access Daily
Root Access Daily
@RootAccessDaily

"logrotate keeps my disk from filling"

It handles files it knows about. The killers are the ones it doesn't: MySQL slow-query logs, Docker JSON logs (unbounded by default), and nginx logs an app writes to a custom path.
I've watched a $5 box hit 100% disk from /var/lib/docker/containers/*/*-json.log while logrotate sat there clueless.
— set max-size/max-file in Docker daemon.json
— du -sh /var/log/* /var/lib/docker monthly
Don't trust the defaults. Try it tonight.
This post was published in the Telegram channel Root Access Daily (@RootAccessDaily). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.