why uwsgi workers idle but nginx showed a lot of timeouts?

Stack: nginx, uwsgi, django uwsgitop and top both showed uwsgi workers are idle, while nginx error log said upstream timed out. I thought some of request needed a lot of resources such as waiting...

How to read uwsgi stats output

I'm on this page http://uwsgi-docs.readthedocs.org/en/latest/StatsServer.html and using uwsgitop but I have no idea how to interpret the output. The docs aren't giving too much away too. So how...

Ansible: install multiple Python packages on a single session

One of my playbooks contains a task that installs basic Python packages: --- - name: "Install Python packages: {{ python_packages_to_install }}" sudo: true pip: name={{ item }} ...

uwsgitop Doesn't Show Processes

Today I upgraded uwsgi and uwsgitop using pip and running in a vitrualenv on Ubuntu. After the upgrade uwsgitop stop reporting on the 4 processes I had running. I'm running uwsgi 2.0.13.1 with the...

uWSGI lazy-apps and ThreadPool

Running uWSGI with $ cat /etc/uwsgi/uwsgi.cfg [uwsgi] callable = app socket = /var/run/arivale-service/uwsgi.sock chmod-socket = 666 pidfile = /var/run/arivale-service/uwsgi.pid master =...

uWSGI workers stuck: why

I'm using uwsgi version 2.0.13.1 with the following config: bin/uwsgi -M -p 5 -C -A 4 -m -b 8192 -s :3031 --wsgi-file bin/django.wsgi --pidfile var/run/uwsgi.pid...

uWSGI workers all busy, yet requests per second is very low

I'm having quite a bit of trouble optimizing uWSGI to serve my Flask application, which receives around 1500 requests per second. I currently am running Nginx on my front-facing server with four...

Debugging what uWSGI worker is doing

I have a Django application (API) running in production served by uWSGI, which has 8 processes (workers) running. To monitor them I use uwsgitop. Every day from time to time one worker falls into...

uWSGI stats using uwsgitop and socket showing JSONDecodeError

I am not getting uwsgi stats using uwsgitop and socket. I have put uwsgi configuration for the stats with socket and when I tried to get the stat using the command: uwsgitop...

python dependecies fail on CI machine only

my jenkins CI has started to fail. I'm building a module that depends on another module of mine here is the error message. it's not failing on localhost. The build is done using...

uWSGI server sometimes hung up for unknown reasons

I've operated Django + uWSGI apps for a year on AWS, and it was working well until two weeks ago, but I run into the problem that the specific uWSGI process sometimes hung up and rarely recover...

uwsgi worker keep idle after respawning

Environment OS: Linux (4.15.0-1043-aws) / Ubuntu 18.04.1 LTS 64 bit Python: 3.6.5 (default, Apr 1 2018, 05:46:30) uwsgi: 2.0.17.1 App server: Django 2.1.1 Web server: nginx/1.14.0...

uwsgi worker not distributing evenly

I have a Django project configured with nginx and uwsgi. There isn't much cpu processing involved in the website. There is mostly simple read, but we expect lot of hits. I have used apache bench...

/bin/bash: invalid optionash: -

I'm new with Docker, so sorry if this is a noob question :( A friend shared with me his project and I'm trying to create the container but I have an error. Here is my input: docker build -t...