Side effects of setting max-requests on uwsgi config

uwsgi

In order to try and reduce memory usage on our web server, I've had to set the max-requests property on my uwsgi config to 50.

What are the down sides of this?

We've got 10 workers on the site and it looks like workers are being recycled every 20 minutes or so but, so far at least, it seems to be having the desired effect of us not getting near our memory limit.

I'm just slightly concerned that it might side effects for users but I'm not sure. Any ideas?

Best Answer

As far as i know, the only downside of setting max-requests is that when running apps that load on the first request to the server instead of the worker initialization (like Django), every time a worker hits the max-requests limit, the next request that it answers will have a delay. If that delay is short or long, depends on your server specs and the complexity of your app.

Related Topic