Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

How do I determine the number of uwsgi max-requests?

uwsgi option

master = true

processes = 4

threads = 2

socket = /tmp/%(project).sock

chmod-socket = 666

vacuum = true

socket-timeout = 10

listen = 1024

enable-threads = true

reload-mercy = 30

reload-on-rss = 1400

max-worker-lifetime = 3600

harakiri = 40 

I would like to add max-requests from the options currently in use. Looking at other usage examples, it seems to be setting max-requests of 1000 to 5000.

enter image description here

I have 8 workers because I run 2 servers with the same specification using aws elb.

There are 40,000 requests every 5 minutes with the most users. What is the best way to find the optimal values ??for max-requests?

If set it to 5000 as in the other examples, I think the worker restarts every 5 minutes. If so, it seems to be a problem.

question from:https://stackoverflow.com/questions/65838650/how-do-i-determine-the-number-of-uwsgi-max-requests

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...