Re: ulimit in the ubuntu package

2013-06-04 Thread pablo platt
So ulimit in the init script is redundant. I'll use worker_rlimit_nofile. Thanks On Tue, Jun 4, 2013 at 5:35 PM, Sergey Budnevitch wrote: > > On 4 Jun2013, at 17:32 , pablo platt wrote: > > > "worker_rlimit_nofile set RLIMIT_NOFILE for workers only, so master > process still sees previous

Re: ulimit in the ubuntu package

2013-06-04 Thread Sergey Budnevitch
On 4 Jun2013, at 17:32 , pablo platt wrote: > "worker_rlimit_nofile set RLIMIT_NOFILE for workers only, so master process > still sees previous value." > http://mailman.nginx.org/pipermail/nginx/2008-April/004596.html You hardly need to increase number of file descriptors for master process,

Re: ulimit in the ubuntu package

2013-06-04 Thread pablo platt
"worker_rlimit_nofile set RLIMIT_NOFILE for workers only, so master process still sees previous value." http://mailman.nginx.org/pipermail/nginx/2008-April/004596.html If worker_rlimit_nofile doesn't affect the master process and limits.conf doesn't affect init script, do I need to call ulimit in

Re: ulimit in the ubuntu package

2013-06-04 Thread Sergey Budnevitch
On 4 Jun2013, at 17:04 , pablo platt wrote: > It's not clear to me how worker_rlimit_nofile, /etc/security/limits.conf and > setting ulimit in the init.d script are related. > > Is worker_rlimit_nofile the same as using ulimit in the init.d script? > Or does ulimit sets the maximum limit and

Re: ulimit in the ubuntu package

2013-06-04 Thread Sergey Budnevitch
On 4 Jun2013, at 16:39 , Maxim Dounin wrote: > Hello! > > On Tue, Jun 04, 2013 at 04:30:40PM +0400, Sergey Budnevitch wrote: > >> >> On 4 Jun2013, at 15:39 , pablo platt wrote: >> >>> Hi, >>> >>> I'm using the ubuntu package from nginx.org. >>> >>> In the package from the official ubunt

Re: ulimit in the ubuntu package

2013-06-04 Thread pablo platt
It's not clear to me how worker_rlimit_nofile, /etc/security/limits.conf and setting ulimit in the init.d script are related. Is worker_rlimit_nofile the same as using ulimit in the init.d script? Or does ulimit sets the maximum limit and worker_rlimit_nofile the limit per worker? Why does the in

Re: ulimit in the ubuntu package

2013-06-04 Thread Andre Jaenisch
2013/6/4 Sergey Budnevitch : > No. I will try to wait until either systemd or upstart win. :-) In case you want to support other distros than Ubuntu, you should have an eye on SystemD …but this is Off-Topic here. Regards, Andre ___ nginx mailing list n

Re: ulimit in the ubuntu package

2013-06-04 Thread Maxim Dounin
Hello! On Tue, Jun 04, 2013 at 04:30:40PM +0400, Sergey Budnevitch wrote: > > On 4 Jun2013, at 15:39 , pablo platt wrote: > > > Hi, > > > > I'm using the ubuntu package from nginx.org. > > > > In the package from the official ubuntu repo, you can set file descriptor > > limit by changing /

Re: ulimit in the ubuntu package

2013-06-04 Thread Sergey Budnevitch
On 4 Jun2013, at 15:39 , pablo platt wrote: > Hi, > > I'm using the ubuntu package from nginx.org. > > In the package from the official ubuntu repo, you can set file descriptor > limit by changing /etc/default/nginx > # Check if the ULIMIT is set in /etc/default/nginx > if [ -n "$ULIMIT" ];

ulimit in the ubuntu package

2013-06-04 Thread pablo platt
Hi, I'm using the ubuntu package from nginx.org. In the package from the official ubuntu repo, you can set file descriptor limit by changing /etc/default/nginx # Check if the ULIMIT is set in /etc/default/nginx if [ -n "$ULIMIT" ]; then # Set the ulimits ulimit $ULIMIT fi Is there a reaso