On 7/23/20 12:38 AM, Shashikanth Komandoor wrote:
Thank you Mark for your response.
I understood that gunicorn is a front end that is used like web server like nginx.
But I don't think I am using it instead I am using the httpd to redirect requests to postorius.
Steve has addressed this.
So, in this case, do you think configuring gunicorn as below would work:
You do need to configure gunicorn timeout to solve your issue.
*calling gunicorn.cfg in mailman.cfg as below *
*[webservice]* *configuration: /var/lib/mailman/mailman/src/mailman/config/gunicorn.cfg*
Do NOT do this. Make your own gunicorn.cfg outside of /var/lib/mailman/mailman/src/mailman/ and point to that. Otherwise any upgrade will reverse your changes.
*and content of gunicorn.cfg as below*
(venv3) [root@lsmgr mailman]# cat /var/lib/mailman/mailman/src/mailman/config/gunicorn.cfg [gunicorn] # All the options that can be put here are available at # http://docs.gunicorn.org/en/stable/settings.html#settings # No of seconds to wait before killing the worker processes.
workers = 4 graceful_timeout = 90
Also what is the difference between timeout and graceful_timeout ?
graceful_timeout is not what you want. It addresses something different. As it says in the comment, all the gunicorn settings are described at <http://docs.gunicorn.org/en/stable/settings.html#settings>. timeout and graceful_timeout are near the bottom of that page at <https://docs.gunicorn.org/en/stable/settings.html#timeout> and <https://docs.gunicorn.org/en/stable/settings.html#graceful-timeout>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan