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
3
votes
0 answers

uWSGI vs Twisted Matrix

uWSGI can be configured in ashyncronous mode same as Twisted Matrix, but has anyone tried to compare these to servers in terms of performance? If we need to develop a Python web app handling thousands of connections concurrently, which one of these…
Ander
  • 153
  • 6
3
votes
1 answer

Increased memory usage for uWSGI workers / masters after moving from Debian to Ubuntu

After moving our web servers from Debian to Ubuntu we have noticed a large increase in the amount of memory (RSS) used by uWSGI master and worker processes. The version of uWSGI (1.9.13) remains the same. I've used pmap to examine the memory usage…
aychedee
  • 153
  • 1
  • 7
3
votes
2 answers

uwsgi emperor mode - Warning message

I use uwsgi running in the emperor mode to serve multiple Django Applications on one server. Therefore for every project I have a own config file like this one: true 1
Mario
  • 33
  • 1
  • 3
3
votes
0 answers

uwsgi through supervisor too many open files

I have uWSGI set up through supervisor on a ubuntu 12.04 box and lately I noticed that when trying to tail the logs (all the logs in that user account) I get message that too many files opened , uWSGI is running as a not root user, I changed the…
APZ
  • 954
  • 2
  • 12
  • 25
3
votes
1 answer

Use uWSGI as a proxy server

Question: Is there a way to use uWSGI as a proxy server? More about the system: 6 load-balanced nginix/uWSGI servers Python Requirements: Set up a few proxy servers that can: Accept requests from a client browser Read and modify request…
Chris Dutrow
  • 734
  • 8
  • 20
3
votes
0 answers

NGINX and OpenStack Horizon?

I recently update our web infrastructure to use NGINX instead of our Apache servers. Now, I'm also operating an OpenStack Infrastructure and I was wondering if there is a state of the art way to replace Apache/Mod_wsgi with any NGinx/uwsgi…
Dr I
  • 955
  • 17
  • 33
3
votes
1 answer

uWSGI ignores socket option in config

I'm use Ubuntu 12.04.1 on AWS EC2 Micro instance and trying to set up simple Flask app with uWSGI and nginx. And I faced something strange with uWSGI configuration. Here is my app.conf: [uwsgi] socket = /tmp/tmp.sock plugins = python27 chdir =…
user164908
3
votes
1 answer

Nginx FastCGI in subdirectory only?

I have a single domain where the root is served by a python application running under uWSGI. I however need to run a PHP forum on a subfolder /forum/. I have the following in the apps-available configuration file: location / { try_files $uri @oath;…
Drakekin
  • 133
  • 1
  • 3
3
votes
2 answers

nginx uwsgi flask rewrite directory as base directory within app

So I have a flask application running using uWSGI on Nginx. Nginx is set to call my app at the location /app. So in my flask application I have to take into account the /app part when I map the url to a function. Is there a way to rewrite the nginx…
eatonphil
  • 183
  • 3
  • 12
3
votes
2 answers

systemd initiated uwsgi process shuts down after a while

So I wrote this simple systemd service script:- [Unit] Description=uwsgi server script [Service] User=web Group=web WorkingDirectory=/var/www/prod/myproject/releases/current ExecStart=/bin/bash -c 'source ~/.bash_profile; workon myproject; uwsgi…
Calvin Cheng
  • 1,136
  • 4
  • 14
  • 18
3
votes
1 answer

What's the difference between WSGI and ?

I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error: uWSGI Error Python application not found until I modified the config.xml config file from:
Leftium
  • 293
  • 2
  • 8
3
votes
2 answers

When starting uWSGI on Ubuntu, opendir(): No such file or directory [uwsgi.c line 471]

I am attempting to start uWSGI on Ubuntu 12.04. Upon $ sudo service uwsgi start or # uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/file.ini, I receive the following error: opendir(): No such file or directory [uwsgi.c…
Dmitry Minkovsky
  • 557
  • 3
  • 9
  • 22
3
votes
4 answers

Reload signal for UWSGI when using Supervisord?

I have been using UWSGI behind Nginx and I've set supervisord to restart the Nginx and UWSGI instances in case of a server reboot. I am debugging my application and sometimes need to reload the application. According to this page I should be sending…
keremulutas
  • 171
  • 2
  • 4
3
votes
1 answer

IPC overhead in a (nginx -> uwsgi -> wsgi application) architecture?

Recently I'm setting up some Python website and it seems the architecture nginx -> uwsgi -> wsgi application is an obvious choice in Python world these days. (Actually I'm migrating a MoinMoin site backed by Apache + mod_wsgi to a newer VM running…
xiaq
  • 133
  • 2
3
votes
1 answer

Restart single uWSGI application (when it's in emperor mode)

I'm running uWSGI in emperor mode to host a bunch of Django sites based on their individual configs. These are supposed to update when it detects a change in the config file and this largely works when I just touch uwsgi.ini the relevant file. But…
Oli
  • 1,799
  • 19
  • 27