GWicke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/179764
Change subject: Improve restbase init
......................................................................
Improve restbase init
- Log any remaining console output to syslog. There is basically none, but in
case there is some uncaught exception or an out-of-heap situation it's
better to capture the info in syslog.
- Reduce the ulimit -n setting to 200k. In stress testing the high watermark I
observed was around 50k connections. More powerful hardware will likely
sustain more connections, so 200k should be a good compromise.
Change-Id: I8356e0bd08fb51f5efc27837f1c35fec0e6a4130
---
M modules/restbase/templates/restbase.init
1 file changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/64/179764/1
diff --git a/modules/restbase/templates/restbase.init
b/modules/restbase/templates/restbase.init
index 67608f6..1099af0 100644
--- a/modules/restbase/templates/restbase.init
+++ b/modules/restbase/templates/restbase.init
@@ -48,7 +48,7 @@
do_start()
{
# up the number of fds [sockets] from 1024
- ulimit -n 1000000
+ ulimit -n 200000
# Return
# 0 if daemon has been started
@@ -57,11 +57,13 @@
start-stop-daemon --start --quiet --pidfile $PIDFILE -bm \
-c restbase:restbase --test \
- --exec $DAEMON -- $DAEMON_ARGS \
+ --exec /bin/sh -- \
+ -c "$DAEMON $DAEMON_ARGS 2>&1 | logger -i -t restbase" \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE -bm \
-c restbase:restbase \
- --exec $DAEMON -- $DAEMON_ARGS \
+ --exec /bin/sh -- \
+ -c "$DAEMON $DAEMON_ARGS 2>&1 | logger -i -t restbase" \
|| return 2
echo "Started RESTBase server, by default listening on port 7231"
--
To view, visit https://gerrit.wikimedia.org/r/179764
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8356e0bd08fb51f5efc27837f1c35fec0e6a4130
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits