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
2
votes
1 answer

UWSGI --cheap and --idle modes - expected behaviour

I'm running django on uwsgi using the following command uwsgi --master --cheap --idle 60 --http-socket :8084 --wsgi-file /var/django/mysite/django.wsgi Typically my processes sit at around 10mb each, but I have seen them sitting at around half a…
Greg
  • 239
  • 1
  • 12
2
votes
2 answers

nginx configuring uwsgi and gzip buffers for different usage scenarios

I'm trying to configure two URL path groups for relatively different usage scenarios and resource consumption in nginx. Both are served by same uwsgi application. Group 1: Regular HTML pages up to cca 128k in size, default Group 2: Large XML…
V. K.
  • 21
  • 1
  • 2
2
votes
1 answer

Nginx + uWSGI + Django performance stuck on 100rq/s

I have configured Nginx with uWSGI and Django on CentOS 6 x64 (3.06GHz i3 540, 4GB), which should easily handle 2500 rq/s but when I run ab test ( ab -n 1000 -c 100 ) performance stops at 92 - 100 rq/s. Nginx: user nginx; worker_processes…
dancio
  • 23
  • 1
  • 4
2
votes
2 answers

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, not server related, but since it works on my…
Gabriele B
  • 163
  • 4
2
votes
1 answer

Nginx+uWsgi+Flask cannot setup success

I want use nginx, uWsgi, Flask on centos 5, but always has some error. 3 app are all newest version, the uwgsi_params file copy from uwsgi/nginx. I use virtualenv to config python env. project path: /path/to/project virtualevn:…
someok
2
votes
1 answer

Mutli-Site uWSGI config

I have about a dozen small Django sites I want to run using Nginx and uWSGI. They are on a 4-core server with 8 gigs of ram. Should each site be configured on its own socket and how can I control the total number of processes across all instances of…
Jason Christa
  • 622
  • 4
  • 11
  • 21
2
votes
2 answers

Django, uWSGI and Supervisord config

OK I have Django, nginx and uWSGI set up on my server...the problem is I start uWSGI manually via this command: uwsgi -s /home/user/sites/sock/uwsgi.sock -t 10 -M -p 1 -C --pythonpath /home/user/sites/ -w mysite.django_wsgi And it's working great.…
Veles
  • 135
  • 1
  • 7
2
votes
0 answers

Nginx + uWSGI + Flask Connection Reset

Problem I have a Flask app deployed using Elastic Beanstalk's "Single Container Docker" platform (latest revision 3.2.5 at the time of writing), with an "Application Load Balancer" in front of it. I had this same Flask app deployed in EB with the…
jlucier
  • 121
  • 4
2
votes
1 answer

Invalid Request Block Size with Nginx and USWGI

I am trying to load balance 2 Python apps using Docker and Nginx. App 1 is run using UWSGI and App 2 is run using default Python Server (I used default server for App 2 just for testing purposes. At the end of the day both should use UWSGI) The…
Mervin Hemaraju
  • 115
  • 4
  • 14
2
votes
1 answer

How to use UNIX domain sockets behind Apache / mod_proxy_uwsgi?

On my development system I'm running a Flask WSGI application with uwsgi and nginx. However on the production server I need to use Apache instead of nginx, so I'm trying to do that. In nginx the site is mounted like this: location /flaskapp {…
musbur
  • 193
  • 12
2
votes
1 answer

uwsgi vassal does not use virtualenv

I am running a python application started by an uwsgi emperor. The application is supposed to run in a specific venv, but I cannot get that to work. The ini file for the application specifies a venv created with python3.8. Still, the application is…
ygramoel
  • 151
  • 4
1
vote
0 answers

Should I avoid CORS when building an SPA with backend API hosted on the same server?

I've stumbled upon this question and had the thought that my application should not require CORS, since it is hosted on the same server (a raspberry pi). However, since CORS is a security "feature" I'm also not sure if avoiding it would even be good…
HackXIt
  • 21
  • 1
  • 8
1
vote
0 answers

Uwsgi/nginx unix socket refusing connections

I have a python project that I am trying to serve with uWSGI and Nginx. I'm trying to connect the two with a Unix IPC socket (debian stretch), but the socket refuses connections whenever Nginx tries to connect to it. It's not an issue of proper…
1
vote
0 answers

nginx + uwsgi + django 502 bad gateway on aws ec2

I have successfully installed nginx and uwsgi on aws ec2 instance. But on hitting the public IP its showing "502 bad gateway". Though both nginx and uwsgi server status is running and active. The uwsgi.ini file is : [uwsgi] project_name =…
Jatin Goyal
  • 111
  • 2
1
vote
0 answers

how to set and test nginx uwsgi_buffer_size

I have a nginx+uwsgi setup to deploy a django app. I noticed that when using g+ authentication the response from the django app has a dimention that is growing month after month. I'm reading the uwsgi logs and particularly the end of the line: 7…