-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Increasing the number of open files by docker process. #466
Conversation
@@ -31,6 +31,9 @@ start() { | |||
EXTRA_ARGS="$EXTRA_ARGS -s $DOCKER_STORAGE" | |||
fi | |||
|
|||
# Increasing the number of open files by docker process | |||
ulimit -n 10000 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I was thinking we should make sure it can be set using an ENV var on the persistent disk too |
@SvenDowideit the Docker numbers were chosen to be high enough that they wouldn't need to be changed any time soon, which is why none of the upstream init scripts have them as configurable knobs; can you think of a use case where the number provided wouldn't be high enough? |
Discussions about setting it through ENV aside, I made an update to the default values and added support to configure it through ENV :) |
@@ -31,6 +32,10 @@ start() { | |||
EXTRA_ARGS="$EXTRA_ARGS -s $DOCKER_STORAGE" | |||
fi | |||
|
|||
# Increasing the number of open files by docker process | |||
ulimit -n $DOCKER_FILES_ULIMIT | |||
ulimit -u $DOCKER_FILES_ULIMIT |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM |
very excellent, thank you very much LGTM |
Increasing the number of open files by docker process.
mmm, this does not appear to have worked. |
Increasing the number of open files by docker process.
With the more extensive/intensive use of docker on day-to-day activity, this error might occur:
This pull request has the goal of increasing docker's open file limit, avoiding this error.