Root Access Daily
Root Access Daily
@RootAccessDaily

"More PHP-FPM workers = handle more traffic"

"More PHP-FPM workers = handle more traffic"
Nope. Each pm.max_children eats 30-60MB. Set it to 50 on a 2GB box and you'll swap-thrash into a death spiral the second traffic spikes.
Math it: (RAM - 512MB for MySQL/nginx) / avg_worker_MB. On 2GB that's ~20 children, not 50.
Fewer workers that never swap beat many that do. A queued request is fine; a swapping box is dead.
Try it tonight.
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.
tech

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

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

start

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

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

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