You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/10/12 19:29:23 UTC
[couchdb-documentation] branch master updated: Improve docs on
bumping fd limits
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new 35a4f9f Improve docs on bumping fd limits
35a4f9f is described below
commit 35a4f9f307a2d3fc493fa32ad8a7e67056de4f79
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Thu Oct 12 13:42:04 2017 -0400
Improve docs on bumping fd limits
---
src/maintenance/performance.rst | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/maintenance/performance.rst b/src/maintenance/performance.rst
index 5ee2a12..9d6bbe7 100644
--- a/src/maintenance/performance.rst
+++ b/src/maintenance/performance.rst
@@ -133,11 +133,18 @@ If your system is set up to use the Pluggable Authentication Modules (`PAM`_)
system (as is the case with nearly all modern Linuxes), increasing this limit
is straightforward. For example, creating a file named
``/etc/security/limits.d/100-couchdb.conf`` with the following contents will
-ensure that CouchDB can open up to 4096 file descriptors at once::
+ensure that CouchDB can open up to 10000 file descriptors at once::
#<domain> <type> <item> <value>
- couchdb hard nofile 4096
- couchdb soft nofile 4096
+ couchdb hard nofile 10000
+ couchdb soft nofile 10000
+
+If you are using our Debian/Ubuntu sysvinit script (``/etc/init.d/couchdb``),
+you also need to raise the limits for the root user::
+
+ #<domain> <type> <item> <value>
+ root hard nofile 10000
+ root soft nofile 10000
You may also have to edit the ``/etc/pam.d/common-session`` and
``/etc/pam.d/common-session-noninteractive`` files to add the line::
@@ -160,8 +167,11 @@ is allowed to hold open at once.
If your system does not use PAM, a `ulimit` command is usually available for
use in a custom script to launch CouchDB with increased resource limits.
-If necessary, feel free to increase this limits as long as your hardware can
-handle the load.
+Typical syntax would be something like `ulimit -n 10000`.
+
+In general, modern UNIX-like systems can handle very large numbers of file
+handles per process (e.g. 100000) without problem. Don't be afraid to increase
+this limit on your system.
.. _PAM: http://www.linux-pam.org/
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].