D
D
dvachek2016-11-02 22:22:41
Nginx
dvachek, 2016-11-02 22:22:41

Nginx gives 502 for no reason, what to do?

There are 2 CPU servers on it nginx + php-fpm, and from time to time completely out of the blue gives 502 errors per day 1 million hits on the site.
Here is the nginx config: paste.org.ru/?zve9ew
Here is the php-fpm-pool config: paste.org.ru/?xjqn9k
What's the problem how to fix it? At the same time, the load on the CPU is only 30%, the rest does not eat anything at all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DuD, 2016-11-03
@DuD

Включите error лог nginx и посмотрите что будет в нем.

H
hOtRush, 2016-11-03
@hOtRush

лог nginx и смотреть почему 502. скорее всего медленные пхпшные скрипты или пики нагрузки, когда запросов больше, чем ваш сервер может обработать до таймаута nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question