-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Phillip Oldham wrote:

> We're running a number of Python Thrift[1] servers under Supervisord. 
> We've found that if you establish a connection to the server from a 
> client then tell supervisorctl to stop the process the server stays "up" 
> but stops accepting connections. Supervisord sees the process as ended.
> 
> We've tried TERM, QUIT and KILL, but none stop the process; we have to 
> go to the command-line and issue a `kill 12345`.
> 
> We assume this is a problem with the Thrift server methods, and have 
> sent a separate email to the user mailing list, but it would be useful 
> to be able to see what is happening under-the-hood on supervisor's side.
> 
> Advice?

Supervisor cannot manage "grandchild" processes.

If supervisor thinks the process is down, but you still see processes
running, then the thrift server must be forking child processes, typical
either to daemonize itself or to use the child processes as a "worker
pool" (hmmm, child labor laws, anyone).  The child process are probably
then either zombies, or else blocked because they expect the parent to
be performing some task on their behalf.

If thrift is daemonizing itself, try changing the command line in
supervisord.conf to run  the thrift process in "foreground" (non-daemon)
mode.  If thrift is instead using something like the Python mulitprocess
module to do a "worker" pool using its own child process, try switching
it to threaded mode, if possible.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwXg8kACgkQ+gerLs4ltQ7K8QCfSCVzaIpa+EFn56RhWzCCLkWR
ZtgAnROih7DWbKRnhgF7x+fm3S6Y+L6q
=4n3v
-----END PGP SIGNATURE-----
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to