uwsgi-docs
uwsgi-docs copied to clipboard
UWSGI process taking 200% of CPU!
Can anyone help us out here? What are we doing wrong? UWSGI takes 200% of CPU usage.
Here is our uwsgi config file:
[uwsgi] socket = /tmp/flask-uwsgi.sock logto = /home/ubuntu/logs/nlp-services.log env = NLTK_DATA=/home/ubuntu/nltk_data/ env = JAVA_HOME=/usr/lib/jvm/java-8-oracle home = /home/ubuntu/miniconda3/envs/nlp_server/bin wsgi-file = /home/ubuntu/repo/nlp-services/wsgi.py callable = server master = true enable-threads = true die-on-term = true processes = 2

If you are running some cpu bound nltk code in your python workers high cpu usage shouldn't be a surprise. Still not something you want to do generally.
whats the best practice in that case then? can you please guide me?