Why use the uWSGI max-requests option?

I see that many of the uWSGI configurations hosted here, and those that I came across for existing applications at work, also have max requests filled with values ​​from 100 to 1000.

What is the purpose of reusing your processes after a certain number of requests? Are you trying to avoid memory leaks by forcing the application to handle flushing gracefully?

+5
source share
1 answer

Yes, avoiding memory leaks is one of the main reasons for setting the maximum request. There is another harakiri parameter that helps the server get rid of a bad application by blocking resources.

+6
source

Source: https://habr.com/ru/post/1238030/


All Articles