Welcome! Log In Create A New Profile

Advanced

Re: nginx reload

Maxim Dounin
January 09, 2013 12:18PM
Hello!

On Wed, Jan 09, 2013 at 06:31:54PM +0200, Александр Самарин wrote:

> Добрый день! Подскажите, в чем может быть проблема. Есть сервер на centos
> 6.3. Установлен nginx version: nginx/1.2.5. http://1.2.0.5/
>
> Проблема появляется после <<service nginx reload>>. Сразу после релоада,
> начинает расти нагрузка на сервер.Коннекты не обрываются
>
>
>
> До релоада
>
> 55.0 74180 - nginx: worker process
> 53.5 74712 - nginx: worker process
> 54.4 75500 - nginx: worker process
> 53.9 74312 - nginx: worker process
> 54.3 74972 - nginx: worker process
> 54.3 74180 - nginx: worker process
> 53.4 74048 - nginx: worker process
> 53.8 75104 ep_pol nginx: worker process
>
>
> после
>
> 55.3 74576 - nginx: worker process is shutting down
> 54.7 75504 - nginx: worker process is shutting down
> 55.1 75500 - nginx: worker process is shutting down
> 55.1 74840 - nginx: worker process is shutting down
> 55.4 75632 - nginx: worker process is shutting down
> 55.2 74708 - nginx: worker process is shutting down
> 54.9 74576 - nginx: worker process is shutting down
> 55.2 75896 - nginx: worker process is shutting down
> 17.9 57524 - nginx: worker process is shutting down
> 19.6 57524 ep_pol nginx: worker process is shutting down
> 20.0 57524 ep_pol nginx: worker process is shutting down
> 17.6 57524 - nginx: worker process is shutting down
> 18.7 57524 - nginx: worker process is shutting down
> 14.6 57524 ep_pol nginx: worker process is shutting down
> 18.1 57524 - nginx: worker process is shutting down
> 19.0 57524 - nginx: worker process is shutting down
> 18.2 58200 - nginx: worker process
> 17.5 58332 ep_pol nginx: worker process
> 17.0 58332 - nginx: worker process
> 17.6 58464 - nginx: worker process
> 18.9 58332 - nginx: worker process
> 18.8 58332 - nginx: worker process
> 17.4 58728 - nginx: worker process
> 17.7 58200 - nginx: worker process

Судя по количеству процессов в стостоянии "shutting down", вы
сделали reload дважды.

Вообще reload - это операция, которая ожидаемо увеличивает
нагрузку, т.к. запускаются новые рабочие процессы, при этом старые -
продолжают работать, пока не закончат обслуживание ранее
стартовавших запросов. В зависимости от характера нагрузки для
конкретного сервера - это может быть долго.

Если есть основания полагать, что наблюдаемое увеличение нагрузки -
не объясняется вышеприведёнными причинами, то желательно их
привести в явной форме. В приведённых на текущий момент данных я
ничего необычного не вижу, всё вполне объяснимо двумя reload'ами и
наличием долгих запросов на сервере.

Подробно про reload можно почитать тут:
http://nginx.org/ru/docs/control.html#reconfiguration

--
Maxim Dounin
http://nginx.com/support.html

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx reload Attachments

Александр Самарин January 09, 2013 11:34AM

Re: nginx reload

Maxim Dounin January 09, 2013 12:18PM

RE: nginx reload

Александр Самарин January 09, 2013 01:46PM

Re: nginx reload

Andrey Repin January 09, 2013 09:52PM

Re: nginx reload

Вадим Лазовский January 10, 2013 01:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready