Welcome! Log In Create A New Profile

Advanced

Re: nginx -s reload problem

B.R.
July 22, 2014 10:14AM
That worker states indicates that the old workers are still busy.

Signaling nginx for a reload (through 'reload' service command or sending
HUP to the master, which all does the latter), *graciously* shuts old
workers down, that means leaving them finishing what they are doing without
accepting new tasks.
You have resources to learn how to control nginx
http://nginx.org/en/docs/control.html​
​.​


So: your workers are busy.
If you look at your network table, you will most probably find out that
those processes are attached to existing connections.

​You may want to dig on why those workers are busy and the reason for the
connections being held open (file transfer? connection​ timeout not
expired? request being processed?)
---
*B. R.*


On Tue, Jul 22, 2014 at 5:12 AM, Harold.Miao <miaohonghit@gmail.com> wrote:

> Do you have any good suggestions?
>
> Thanks in advance!
>
> Roman Arutyunyan <arutyunyan.roman@gmail.com>于2014年7月21日星期一写道:
>
>> Reload will not work properly with rtmp since rtmp connections are long
>> unlike http.
>>
>>
>> On Mon, Jun 16, 2014 at 11:19 AM, Harold.Miao <miaohonghit@gmail.com>
>> wrote:
>>
>>> hi all
>>>
>>> I use a endless rtmp stream
>>>
>>> /usr/local/nginx/wsgi/ffmpeg -i haha.mp4 -c:v libx264 -b:v 500k -c:a
>>> copy -f flv rtmp://172.16.205.50:1936/publish/you
>>>
>>> as you known, if I use nginx -s reload , then I got a lot of "nginx:
>>> worker process is shutting down"
>>>
>>> pplive 15355 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>> pplive 15356 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>> pplive 15357 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>> pplive 15358 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>> pplive 15359 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>> pplive 15360 13642 0 14:56 ? 00:00:00 nginx: worker process is shutting down
>>>
>>> ​
>>>
>>> because the connection will not quit, so "nginx: worker process is
>>> shutting down" more and more
>>>
>>> so How to aviod this status using "nginx -s reload"
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>> Harold Miao
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "nginx-rtmp" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to nginx-rtmp+unsubscribe@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/nginx-rtmp.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> --
>> Roman Arutyunyan
>>
>
>
> --
>
> Best Regards,
> Harold Miao
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx -s reload problem

Harold.Miao June 16, 2014 03:22AM

Re: nginx -s reload problem

Harold.Miao July 21, 2014 11:14PM

Re: nginx -s reload problem

B.R. July 22, 2014 10:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
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