From dd209843eea1a6428a6b7b0c7f5b262ae4999933 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sun, 19 Jan 2014 11:59:59 -0500 Subject: set ulimit -n to be higher by default in the /etc/sv/bigcouch/run file (#4935) --- debian/changelog | 3 ++- debian/etc/sv/bigcouch/run | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 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 + -- cgit v1.2.3