Root Access Daily
Root Access Daily
@RootAccessDaily

<b>Your cron job is running 4 copies of itself right now</b>

<b>Your cron job is running 4 copies of itself right now</b>

That <code>*/5</code> job that pulls feeds? If it ever takes longer than 5 min, cron fires another while the first is still chewing. Now you've got overlapping processes eating RAM until the box falls over. Wrap it in flock:

— <code>*/5 * * * * flock -n /tmp/feeds.lock php /var/www/pull.php</code>

<code>-n</code> means: if the lock's held, just skip this run, don't queue. One running copy, ever. This single fix has saved more $5 boxes than any RAM upgrade. Try it tonight.
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.
start

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

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

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