Can someone pls help to know the reason why gunicorn sends info message Handling signal: winch when Application is idle.
There is no error , application continues to respond but when it is idle above message is displayed.
I could not find more information in gunicorn handling signal documentation section except WINCH: Gracefully shutdown the worker processes when Gunicorn is daemonized.
A winch signal (or SIGWINCH, short for Signal Window Change) is normally sent to applications when the terminal window size changes, so that applications know to redraw on the screen. However, gunicorn interprets it to shutdown the worker processes, but only when the application is daemonized.
Gunicorn should only need 4-12 worker processes to handle hundreds or thousands of requests per second. Gunicorn relies on the operating system to provide all of the load balancing when handling requests.
A winch signal (or SIGWINCH, short for Signal Window Change) is normally sent to applications when the terminal window size changes, so that applications know to redraw on the screen. However, gunicorn interprets it to shutdown the worker processes, but only when the application is daemonized. Daemonized is just another way of saying an application is running in the background. This means that while gunicorn isn't running as a background process (i.e. it's on your screen), it handles the signal and doesn't shut down the worker processes.
So to answer your questions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With