Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

The uWSGI project

The uWSGI project aims at developing a full stack for building hosting services.

Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style.

Thanks to its pluggable architecture it can be extended to support more platforms and languages.

Currently, you can write plugins in C, C++ and Objective-C.

The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project.

Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules followed).

Github Docs

346 questions
5
votes
3 answers

Docker how to Django + uwsgi/gunicorn + nginx?

I can't get my head around on what's the "correct" way to deploy a Django project that uses uwsgi/gunicorn (I haven't decide yet what to use, probably uwsgi since it has better performances, suggestions?) and nginx using docker. I saw that some…
EsseTi
  • 255
  • 3
  • 13
5
votes
3 answers

Nginx & uWSGI: ImportError: No module named site

I'm receiving an error: ImportError: No module named site according to my uWSGI log. test_proj.ini: [uwsgi] chdir = /home/%n/app module = %n.wsgi home = /home/%n/app/venv master = true processes = 10 chmod-socket = 664 socket =…
koralarts
  • 261
  • 1
  • 3
  • 11
5
votes
1 answer

Running (and monitoring) nginx with supervisord

I will start with my use case, since I very well may not be using the correct tools for this job. Please let me know if I am going about this all the wrong way use case: I have a CentOS server hosting multiple web apps. I want to be able to trust…
Brian Leach
  • 327
  • 3
  • 5
  • 16
5
votes
3 answers

nginx failed (13: Permission denied) uwsgi (502 bad gateway)

I am having trouble running my application on a new DigitalOcean droplet. The machine runs CentOS 6.5 My /etc/nginx/nginx.conf user nginx www-data; worker_processes 1; error_log /var/log/nginx/error.log; #error_log /var/log/nginx/error.log …
Brian Leach
  • 327
  • 3
  • 5
  • 16
5
votes
1 answer

nginx + uwsgi - what is serving static files?

I am using nginx as a proxy to a couple of flask apps, with uwsgi as the middleware. Here's my nginx config for a test app. server { listen 80; server_name test.myapp.com www.test.myapp.com; charset utf-8; …
reptilicus
  • 153
  • 1
  • 1
  • 5
5
votes
1 answer

How do I debug this Nginx to uWSGI timeout?

I'm running a database-backed web site that receives very little traffic. However, once or twice day, a request will timeout and I'll see this (or a similar) error in Nginx's error.log: 2013/06/13 18:32:40 [error] 16723#0: *27796 upstream timed out…
skyler
  • 465
  • 3
  • 8
  • 17
5
votes
1 answer

Reload and evil-reload in uwsgi config

What is the difference between reload-on-as and evil-reload-on-as options in uwsgi config? I use reload-on-as and uwsgi worker still consumes unlimited memory and reloads when task is finished. I need to kill worker when it consumes limited memory…
Raz
  • 153
  • 4
5
votes
1 answer

Analyze uwsgi strace log to find out why it takes high CPU usage

I'm running a django site with nginx through uwsgi. The problem is uwsgi process take a lot of CPU time when traffic become heavy. The same configuration works fine on test server and siege/ab simulate heavy concurrent traffic. Here is one strace…
chenxee
  • 151
  • 1
  • 4
5
votes
1 answer

nginx+ uwsgi gives 502 Bad Gateway

I used this guide to set it up and it was working to server my django app for a while, but after adding a new django module, without touching any of the nginx or uwsgi configs, now the server leads to 502 502 Bad Gateway error. The nginx error.log …
alfish
  • 3,127
  • 15
  • 47
  • 71
5
votes
2 answers

Correct number of uWSGI processes?

On a 4-core box which scenario makes the better setup: 4 uWSGI processes with a deep queue to handle requests 8 uWSGI processes with a deep queue As many many processes as the server's memory allows with the a relatively shallow queue ?
Jason Christa
  • 622
  • 4
  • 11
  • 21
5
votes
2 answers

Has anyone used uwsgi nginx and django for a high-load environment?

I was wondering if anyone has used uwsgi with nginx to serve a high-load django site before. If so, did they have any problems?
kkubasik
  • 209
  • 3
  • 5
4
votes
2 answers

Plain uWSGI error: uwsgi_response_write_body_do() TIMEOUT

This looks like a well-known issue with Nginx+uWSGI timeouts, but my setup is different and I couldn't find information about it. I run a Flask app on uWSGI, on http protocol (not sockets). When I query my API, sometimes I receive an…
adamczi
  • 153
  • 1
  • 6
4
votes
2 answers

Side effects of setting max-requests on uwsgi config

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…
bodger
  • 155
  • 2
  • 6
4
votes
4 answers

Nginx: 502 Bad Gateway error with (111: Connection refused) to uWSGI socket while running django

I am building an app using an Nginx, uWSGI, Django and Postgresql stack. The app uses a Unix socket between Nginx and uWSGI. The file permissions on the socket is 775. But I still get this permission error: [error] 6978#0: *6725 connect() to…
user2901792
  • 141
  • 1
  • 1
  • 3
4
votes
0 answers

Is there a way to "unset" options in uWSGI config files?

Let's say my config (uwsgi.ini) looks like: # can run just by uwsgi uwsgi.ini [uwsgi] # put all common elements here (can be over-ridden) http = :8090 wsgi-file = ./test.py master = 1 processes = 4 threads = 2 #uid=www-data #gid=www-data # run via:…
Gerrat
  • 185
  • 8
1 2
3
23 24