Skip to content

Commit

Permalink
Merge pull request #2173 from julyclyde/master
Browse files Browse the repository at this point in the history
Update faq.rst and fix technical mistake on ulimit
  • Loading branch information
benoitc committed May 7, 2023
2 parents db363bc + 00b5897 commit 8a41cd2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/source/faq.rst
Expand Up @@ -129,9 +129,13 @@ One of the first settings that usually needs to be bumped is the maximum number
of open file descriptors for a given process. For the confused out there,
remember that Unices treat sockets as files.

::
.. warning:: ``sudo ulimit`` may not work

Considering non-privileged users are not able to relax the limit, you should
firstly switch to root user, increase the limit, then run gunicorn. Using ``sudo
ulimit`` would not take effect.

$ sudo ulimit -n 2048
Try systemd's service unit file, or an initscript which runs as root.

How can I increase the maximum socket backlog?
----------------------------------------------
Expand Down

0 comments on commit 8a41cd2

Please sign in to comment.