WebFaction
Community site: login 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 27 Sep '12, 17:57

Guandalino
3711318
accept rate: 0%


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

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

permanent link

answered 27 Sep '12, 18:05

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

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.

(27 Sep '12, 18:24) Guandalino
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.

(27 Sep '12, 18:31) bmeyer71 ♦♦
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×14
×12
×4

question asked: 27 Sep '12, 17:57

question was seen: 3,613 times

last updated: 27 Sep '12, 18:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM