Follow

Python Webapp Deployment Question, Boosts Would Be Grand 

Has anyone ever used Gunicorn with Supervisord for hosting webapps here? Is it any good? I've got a project that is going to require a Flask USWGI webapp and also some background daemon processes to run jobs off queues and I would like to have everything running via suprevisorctl if possible.

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas work at a company that runs about 30 django servers with gunicorn, kept alive by supervisord

It is an option

Python Webapp Deployment Question, Boosts Would Be Grand 

@trickster Is it a good option? Has it ever crashed and burned or just generally been fiddly?

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas supervisord itself is OK, wouldn't say it's leaps and bounds better than systemctl for example. It's a bit of a pain until you wrote the process script for both of them, although it might be a smidgeon easier to setup

Always had head aches with celery, bus that's another problem

Gunicorn is ok. Although having 3 workers can make some things crappy, but in general it's ok

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas oh yeah, also celery for async jobs, that's also kept alive by supervisord, its an OK setup

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas At my work, we run uwsgi behind nginx managed by Upstart (though we're planning on upgrading our Ubuntu version to a version that runs systemd soonish). We manage our Celery workers the same way.

I personally like the integration with the system service manager. For Celery, we use a feature that allows us to pass args in, so restarting one queue is `sudo service celeryd-worker QUEUE=… restart`

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas we (our Hackerspace) use a Django blog in gunicorn behind nginx. The blog needs about 4 cores for 1 request per second, but I guess that's not the fault of gunicorn...

Python Webapp Deployment Question, Boosts Would Be Grand 

@stolas @noelle I don’t know if it’s actually *good* but it works for our modest needs, a couple of django apps. It’s more one of my staff who babysits it but he’s been gone for a month and nothing has blown up.

Sign in to participate in the conversation
Elekk: Mastodon for Gamers

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!