I understand that it has a bad document, if you look at the Green Unicorn (gunicorn) gUnicorn config configuration link, you will find many parameters that can be used for the gun process and for managing workers, for example
1) employee_connections The maximum number of concurrent clients. In this case, the configuration file can be configured as follows:
worker-connections = 1000
2) max_requests The maximum number of requests that the worker will process before rebooting.
max_requests = 2
3) timeout Workers, silent for more than a few seconds, are killed and restarted.
timeout = 30
For safety:
4) limit_request_line
The maximum size of the HTTP request string in bytes.
limit_request_line = 4094
Thus, you can configure the configuration file of your server using these parameters, which will help you in more efficient process management.
Hope this helps you. Let me know if I missed something.
Hi
Jedi shadow
source share