These are inherited on a per-process basis, so yes, each child process can have 
up to 20000 fds.

Supervisor ITSELF can't use more than 1024 fds when dealing with the 
subprocesses because it uses select() instead of poll().  The fd_set structure 
used in the select() call apparently has only 1024 bits.   Igor Sobreira has a 
supervisor fork on github to try to address this problem at 
https://github.com/igorsobreira/supervisor.   I haven't had time to try it out 
myself, but it looks a lot more promising than my own feeble attempt.


tlj
===========================
From: supervisor-users-boun...@lists.supervisord.org 
[mailto:supervisor-users-boun...@lists.supervisord.org] On Behalf Of Jens Rantil
Sent: Monday, July 16, 2012 10:45 AM
To: supervisor-users@lists.supervisord.org
Subject: [Supervisor-users] minfds

Hi,

I've been trying to find information about this, but information seems quite 
scattered on the web.

I am running a supervisor process as root and have minfds=20000 set in my 
supervisor.conf. All my child processes are started as other users than root. 
Let's call that user "apache". I have three questions:
. Does this mean that the soft limits and hard limits will be raised for all 
childprocesses that supervisor starts? Based on the Supervisor documentation, 
this seems to be the case.
. Since root can have other fileno limits, does this mean that the fileno limit 
can be raised above the user apache's hard limit?
. If I start three processes, will these three processes be sharing the same 
fileno limit pool or use three independent pools? Ie., can they have a total of 
60000 open files or simply 20000 (minus files opened by supervisor)? I 
guess/hope 60000.
I guess this could vary between platforms; I am running a fairly new Debian 
Linux system.

Thanks,
Jens

-- 
Want to know how full my inbox is? Or how to get in touch with me faster? Or 
tell me your e-mail is not that important? Then check this 
out: http://courteous.ly/4WtfZY
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to