Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Gunicorn instead #5

Closed
kennethreitz opened this issue Jan 21, 2012 · 10 comments
Closed

Use Gunicorn instead #5

kennethreitz opened this issue Jan 21, 2012 · 10 comments

Comments

@kennethreitz
Copy link

Gunicorn would make the whole bootstrap.py thing unnecessary. It also spins a configured number of workers, and has an incredibly excellent gevent worker type (as well as tornado, if you're into that :).

Just a suggestion :)

@zachwill
Copy link
Owner

Nice, sounds like a good suggestion. Do you suggest 3 Gunicorn workers like the Dev Center article?

@kennethreitz
Copy link
Author

It depends on the application. The only real limitation is RAM. For small memory applications, I use 9+ gevent workers. If it's a django app (which takes quite a bit more memory), 3 or 4 is best.

@kennethreitz
Copy link
Author

So, 3 is a good default.

@zachwill
Copy link
Owner

Just created a branch and I'm pretty impressed. Did not expect it to be this easy to use.

Will update the documentation and make Gunicorn default — good call, @kennethreitz.

@kennethreitz
Copy link
Author

Awesome ;)

@benoitc is the man to thank ;)

@kennethreitz
Copy link
Author

✨ 🍰 ✨

@kennethreitz
Copy link
Author

Just took a look at the branch. Awesome ;)

If you still want to use gevent (highly recommended) add -k gevent to the command.

@zachwill
Copy link
Owner

Does gevent still need to be in the requirements.txt? Or is it already installed with gunicorn?

@kennethreitz
Copy link
Author

No, it's an optional dependency, so it needs to be requirements.txt.

@zachwill
Copy link
Owner

Ship it.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants