login community faq

I'm considering to switch from Apache/mod_wsgi to nginx/gunicorn for a couple of projects here on WF.

My only concern is about kernel tuning for gunicorn. My questions:

  1. can I increase the maximum number of file descriptors?
  2. Can I increase the maximum socket backlog?

Reference: gunicorn kernel parameters

asked Sep 27 '12 at 17:57

Guandalino's gravatar image

Guandalino
3719


Those settings can not be changed by anyone other than root.

Currently open files is 4096 and net.core.somaxconn is 128.

answered Sep 27 '12 at 18:05

bmeyer71's gravatar image

bmeyer71 ♦♦
8512310

Thanks for the reply. I can't get a measure of these numbers. Do I risk to go out of file descriptors? Do a backlog of 128 is enough? If it's not the requests will be refused. Also consider that other users can contribute consuming these resources, if they run gunicorn as me.

(Sep 27 '12 at 18:24) Guandalino Guandalino's gravatar image
1

The file limit is for each user. As for the socket backlog, yes it could be a possibility that limit could cause a problem. However, we do have a number of users that are using gunicorn and have not reported any problems.

(Sep 27 '12 at 18:31) bmeyer71 ♦♦ bmeyer71's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×73
×10
×7
×1

Asked: Sep 27 '12 at 17:57

Seen: 387 times

Last updated: Sep 27 '12 at 18:31

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited