Hi,
I am looking for a way to reload active (but idle) PSGI workers
periodically
(to keep everything fresh), but so far I found no reliable way to do so.
What I need, basically, is a hook that will be called once worker
is inactive (no activity within N seconds).
Unfortunately, --idle doesn't work this way (and has a problem: #776),
timers are plagued by #58 so could not be used in any of cheaper modes.
Of course, I could monitor workers outside - using stats server, for
instance,
then send SIGHUP to inactive ones, but this does not look clean enough
to me,
especially because a worker may get (or start processing) request
exactly when I send SIGHUP.
Any ideas and suggestions are very welcome :)
Thank you!
--
Best regards,
Alexander.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi