On Fri, Dec 9, 2011 at 5:56 AM, Kaelten <[email protected]> wrote:
> I've done some reading on the configuration file and found a ticket that
> seemed to indicate that I can manipulate the file descriptors limit of a
> child process by setting the minfds in the supervisord config file.
>
> My situation is that I'm needing to run a redis instance that could allow
> for a lot of connections.  I run it directly from supervisor with no run
> script in between so I can't just call ulimit -n on it.
>
> Am I correct in understanding this?

I think you are. I run many children that need a min/max fds and
min/max procs raised way up:
- java jetties
- mongod, mongos
- kestrel
- python tornado
- flume

basically any multi-threaded app or anything that receives/generates
any serious network traffic.

I patched our copy of supervisord to allow for config params
minfds=
maxfds=
minprocs=
maxprocs=
stacksize=

It's a really ugly patch, if I recall, I just pasted a bunch of the
code that sets up the parent when supervisord starts. I wanted more
granular control over children rather than just setting supervisord's
ulimits up front.


>
> Bryan McLemore
> Kaelten
>
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to