Root Access Daily
Root Access Daily
@RootAccessDaily

<b>The silent disk-filler: logs</b>

<b>The silent disk-filler: logs</b>
You'll get paged for "disk full" and it's nginx access logs from 2 years ago. Crank logrotate before it bites.
— in your nginx logrotate: <code>rotate 7</code>, <code>daily</code>, <code>compress</code>, <code>delaycompress</code>
— add <code>maxsize 100M</code> so a traffic spike rotates mid-day
Gzipped logs are ~10x smaller. Force a dry run: <code>logrotate -d /etc/logrotate.d/nginx</code>. I keep 7 days, ship the rest to cheap storage if I even need them. Free GBs back. Try it tonight.
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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