Rush has uploaded a new change for review.
https://gerrit.wikimedia.org/r/235368
Change subject: Allow upstart to set ulimit
......................................................................
Allow upstart to set ulimit
Max client connections is dependent on available file
descriptors minus some reserve and those allocated for server
connections. In order to use client_connections in excess of
935 we need to specify a ulimit.
---
M debian/default
M debian/upstart
2 files changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/debs/nutcracker
refs/changes/68/235368/1
diff --git a/debian/default b/debian/default
index bf9d599..9ba2001 100644
--- a/debian/default
+++ b/debian/default
@@ -1,2 +1,3 @@
# extra daemon options; see nutcracker --help
DAEMON_OPTS=""
+ULIMIT="1024"
diff --git a/debian/upstart b/debian/upstart
index 77b3f67..cb5a174 100644
--- a/debian/upstart
+++ b/debian/upstart
@@ -17,6 +17,7 @@
script
. /etc/default/nutcracker
+ ulimit -n $ULIMIT
exec start-stop-daemon --quiet --start --chuid nutcracker \
--exec /usr/sbin/nutcracker -- $DAEMON_OPTS
end script
--
To view, visit https://gerrit.wikimedia.org/r/235368
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I61a9eecb97427aaf83863b184000a19ddea8df23
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/nutcracker
Gerrit-Branch: master
Gerrit-Owner: Rush <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits