summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2014-01-19 11:59:59 -0500
committerMicah Anderson <micah@riseup.net>2014-01-19 11:59:59 -0500
commitdd209843eea1a6428a6b7b0c7f5b262ae4999933 (patch)
treeac6ebfeeb81a7c8374362ddb5a268c55b07000cf
parent29f3beeeed69c71d28ad435795066577734973a4 (diff)
set ulimit -n to be higher by default in the /etc/sv/bigcouch/run file (#4935)
-rw-r--r--debian/changelog3
-rw-r--r--debian/etc/sv/bigcouch/run6
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 685c5ec7..5e789250 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-bigcouch (0.4.2.leap-1) UNRELEASED; urgency=low
+bigcouch (0.4.2.leap-1) unstable; urgency=low
* replace embedded rebar with Build-dependency on backported version
* add remove_external_dependencies patch to stop pulling the
@@ -14,6 +14,7 @@ bigcouch (0.4.2.leap-1) UNRELEASED; urgency=low
* add patch to hardcode version instead of invoking git
* add patch to add configuration files that are generated by building
process and should be present in the tarball
+ * change /etc/sv/bigcouch/run to have a higher ulimit -n by default
-- Micah Anderson <micah@leap.se> Wed, 15 Jan 2014 17:30:31 +0000
diff --git a/debian/etc/sv/bigcouch/run b/debian/etc/sv/bigcouch/run
index 875c3f02..38a901e1 100644
--- a/debian/etc/sv/bigcouch/run
+++ b/debian/etc/sv/bigcouch/run
@@ -2,3 +2,9 @@
exec 2>&1
export HOME=/home/bigcouch
exec chpst -u bigcouch /opt/bigcouch/bin/bigcouch
+
+# increase the max. no of open files
+# see https://leap.se/code/issues/4935 for details
+ulimit -S -n 4096
+ulimit -H -n 32768
+