Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump the files ulimit warning to 4096

In production use and testing, 1024 is not a high enough value
for `ulimit -n`, so the warning should be set higher in the
runner scripts.
  • Loading branch information...
commit 5bbc2807d69f6a710e007cdecbe13a6d30ff5336 1 parent 9b20e16
@jaredmorrow jaredmorrow authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  package/smartos/patches/rel-files.patch
  2. +3 −3 rel/files/riak
View
2  package/smartos/patches/rel-files.patch
@@ -10,7 +10,7 @@ index 4c5a5d1..80b470b 100755
+ exec sudo -H -u $RUNNER_USER $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT $@
fi
- # Warn the user if ulimit -n is less than 1024
+ # Warn the user if ulimit -n is less than 4096
@@ -105,6 +105,21 @@ sed -n '/Begin SSL distribution items/,/End SSL distribution items/p' \
# Check the first argument for instructions
case "$1" in
View
6 rel/files/riak
@@ -40,11 +40,11 @@ if ([ "$RUNNER_USER" ] && [ "x$WHOAMI" != "x$RUNNER_USER" ]); then
exec sudo -H -u $RUNNER_USER -i $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT $@
fi
-# Warn the user if ulimit -n is less than 1024
+# Warn the user if ulimit -n is less than 4096
ULIMIT_F=`ulimit -n`
-if [ "$ULIMIT_F" -lt 1024 ]; then
+if [ "$ULIMIT_F" -lt 4096 ]; then
echo "!!!!"
- echo "!!!! WARNING: ulimit -n is ${ULIMIT_F}; 1024 is the recommended minimum."
+ echo "!!!! WARNING: ulimit -n is ${ULIMIT_F}; 4096 is the recommended minimum."
echo "!!!!"
fi

0 comments on commit 5bbc280

Please sign in to comment.
Something went wrong with that request. Please try again.