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
1
vote
3 answers

Increasing nginx performance past 1k req/s

I am trying to scale an nginx installation to the best of it's ability. I am running one nginx instance with 6 worker_processes (6 cores) and 5 backend servers consisting af a uwsgi setup with 10 workers each. (total of 50 workers). However, any…
Christian P.
  • 165
  • 1
  • 2
  • 8
1
vote
0 answers

Webserver needed for django WSGI API?

My app is just a REST API written in django. There is no static content or html pages served. In setting up our production environment, we are planning on using amazon ELB (load balancer) to balance requests between many EC2 instances running django…
jmetz
  • 181
  • 1
  • 4
1
vote
1 answer

uWSGI raises segfaults when defining several mount points in preforking+threaded mode

I'm hosting an application consisting of several Python modules. So far we use Apache in MPM worker mode and mod_wsgi, which is a working environment. Now we want to check if nginx + uwsgi may be a more performant environment. Python is Python 2.6.6…
Ralph
  • 33
  • 5
1
vote
0 answers

Occasional uwsgi errors with nginx

I'm getting occasional 502 bad gateway errors with nginx and uwsgi. Inspecting my uwsgi log file I occasionally see uwsgi_proto_uwsgi_parser(): Error 0 [proto/uwsgi.c line 35] I did a load test and I received 285 succesfull requests and 4 bad…
user1585789
  • 111
  • 1
1
vote
1 answer

i'm having to restart the uwsgi process

i am using a combination of uwsgi and nginx to serve my flask app. what happens is that after a few hours (under very low load, < several hundred requests) the requests time out until i restart the uwsgi process and things work again for the same…
tipu
  • 149
  • 8
1
vote
1 answer

Nagios check fails: UWSGI CRITICAL: could not connect() to workers Operation now in progress

All seems to be installed and work as it should (site/server is running) but keep getting this error: UWSGI CRITICAL: could not connect() to workers Operation now in progress when running: uwsgi --nagios --socket=0.0.0.0:1717 My uwsgi.conf…
Christoffer
  • 111
  • 3
1
vote
1 answer

uWSGI and Python on Arch Linux, encoding failure

I am running an Arch Linux box and have setup a Python 3.4 virtualenv. I have a uwsgi vassal being run by the emperor, which specifies the following ini: (some snipped for brevity) [uwsgi] virtualenv = /opt/lib/virtualenvs/bartek socket =…
Bartek
  • 799
  • 2
  • 8
  • 12
1
vote
1 answer

Set nginx to show maintenance page when uWSGI down

I have nginx set up to serve uWSGI for a Flask app. Sometimes there will be errors or I will be restarting the uWSGI service, but I want nginx to serve a nicer maintenance page instead of the default 502 Bad Gateway that happens when uWSGI doesn't…
RipperDoc
  • 113
  • 2
1
vote
1 answer

Ubuntu 12.04 Server - Django with uWsgi not working

I am fairly new to working with servers. I am attempting to run Django on an Ubuntu 12.04 AWS with uwsgi & nginx. I found a tutorial that I was following: http://uwsgi.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I created a virtual…
skovy
  • 131
  • 1
  • 6
1
vote
1 answer

Nginx + uwsgi... 502 bad gateway

So I am trying to set up Nginx with uwsgi for my Django app. Here is my /etc/nginx/nginx.conf file: # /etc/nginx/nginx.conf user richard richard; ## Default: nobody worker_processes 5; ## Default: 1 error_log /var/log/nginx/error.log; pid …
Richard Knop
  • 1,149
  • 2
  • 20
  • 34
1
vote
1 answer

Uwsgi starts from root but not as a service

I have nginx + uwsgi setup for flask website. thats my nginx server { listen 80; server_name _; location /static/ { alias /var/www/site/app/static/; } location / { uwsgi_pass 127.0.0.1:5080; include uwsgi_params; } } And here is my…
vittore
  • 143
  • 8
1
vote
3 answers

Nginx bad gateway (502) error on django 500 errors (instead of showing django 500 page) with DEBUG = False setting

I have a problem with my current setup... And the issue is, that if i set DEBUG = False in django settings.py file nginx stops showing django tracebacks on 500 errors, but does not show our 500 page either. It just displays nginx 502 bad gateway…
OdifYltsaeb
  • 119
  • 3
  • 14
1
vote
2 answers

Serving files from GIT with uWSGI

Good morning everyone! On my daily job, we are using NGINX+uWSGI+MongoDB as Python Application container. For versionning and collaborative developpement we are using GIT install on each developer computer and a central GIT repository for delivery…
Dr I
  • 955
  • 17
  • 33
1
vote
1 answer

Microcaching with nginx & uwsgi

i am running my personal website written with python on nginx with uwsgi. Since the site is very static i want to improve the performace by adding microcaching. Both nginx and also uwsgi do offer caching. nginx microcaching example uswgi caching…
Alexander
  • 235
  • 1
  • 3
  • 9
1
vote
1 answer

Why is UFW blocking some allowed internal connections?

My set up is this: Server 1 (192.168.1.1) - nginx (load balance) - Ubuntu 12.04 LTS Server 2 - uwsgi - Debian 7.1 Server 3 - uwsgi - Debian 7.1 UFW on server 2 and server 3, is blocking certain requests coming from server 1 (nginx) and is…
Vargur
  • 31
  • 1
  • 3