From 81b632689167356312fd507999da69f969d38978 Mon Sep 17 00:00:00 2001 From: Joe Hillenbrand Date: Wed, 30 Mar 2016 16:44:37 -0700 Subject: [PATCH] Set MAX_OPEN_FILES to 65536 Relates to #17430 --- distribution/deb/src/main/packaging/init.d/elasticsearch | 2 +- distribution/rpm/src/main/packaging/init.d/elasticsearch | 2 +- distribution/src/main/packaging/env/elasticsearch | 2 +- distribution/src/main/packaging/systemd/elasticsearch.service | 2 +- docs/reference/setup/as-a-service.asciidoc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/distribution/deb/src/main/packaging/init.d/elasticsearch b/distribution/deb/src/main/packaging/init.d/elasticsearch index 1476a520c1d..f241d3c04d3 100755 --- a/distribution/deb/src/main/packaging/init.d/elasticsearch +++ b/distribution/deb/src/main/packaging/init.d/elasticsearch @@ -60,7 +60,7 @@ ES_HOME=/usr/share/$NAME #ES_JAVA_OPTS= # Maximum number of open files -MAX_OPEN_FILES=65535 +MAX_OPEN_FILES=65536 # Maximum amount of locked memory #MAX_LOCKED_MEMORY= diff --git a/distribution/rpm/src/main/packaging/init.d/elasticsearch b/distribution/rpm/src/main/packaging/init.d/elasticsearch index c68a5b65f3f..a00980f600d 100644 --- a/distribution/rpm/src/main/packaging/init.d/elasticsearch +++ b/distribution/rpm/src/main/packaging/init.d/elasticsearch @@ -35,7 +35,7 @@ fi ES_USER="elasticsearch" ES_GROUP="elasticsearch" ES_HOME="/usr/share/elasticsearch" -MAX_OPEN_FILES=65535 +MAX_OPEN_FILES=65536 MAX_MAP_COUNT=262144 LOG_DIR="/var/log/elasticsearch" DATA_DIR="/var/lib/elasticsearch" diff --git a/distribution/src/main/packaging/env/elasticsearch b/distribution/src/main/packaging/env/elasticsearch index edacea3ec3b..48a0eddc1b6 100644 --- a/distribution/src/main/packaging/env/elasticsearch +++ b/distribution/src/main/packaging/env/elasticsearch @@ -60,7 +60,7 @@ ES_STARTUP_SLEEP_TIME=5 # Specifies the maximum file descriptor number that can be opened by this process # When using Systemd, this setting is ignored and the LimitNOFILE defined in # /usr/lib/systemd/system/elasticsearch.service takes precedence -#MAX_OPEN_FILES=65535 +#MAX_OPEN_FILES=65536 # The maximum number of bytes of memory that may be locked into RAM # Set to "unlimited" if you use the 'bootstrap.mlockall: true' option diff --git a/distribution/src/main/packaging/systemd/elasticsearch.service b/distribution/src/main/packaging/systemd/elasticsearch.service index 1aed30ac968..ccbf4650a22 100644 --- a/distribution/src/main/packaging/systemd/elasticsearch.service +++ b/distribution/src/main/packaging/systemd/elasticsearch.service @@ -29,7 +29,7 @@ StandardOutput=journal StandardError=inherit # Specifies the maximum file descriptor number that can be opened by this process -LimitNOFILE=65535 +LimitNOFILE=65536 # Specifies the maximum number of bytes of memory that may be locked into RAM # Set to "infinity" if you use the 'bootstrap.mlockall: true' option diff --git a/docs/reference/setup/as-a-service.asciidoc b/docs/reference/setup/as-a-service.asciidoc index 3551571b386..a72bdce5bb9 100644 --- a/docs/reference/setup/as-a-service.asciidoc +++ b/docs/reference/setup/as-a-service.asciidoc @@ -16,7 +16,7 @@ Each package features a configuration file, which allows you to set the followin `ES_HEAP_SIZE`:: The heap size to start with `ES_HEAP_NEWSIZE`:: The size of the new generation heap `ES_DIRECT_SIZE`:: The maximum size of the direct memory -`MAX_OPEN_FILES`:: Maximum number of open files, defaults to `65535` +`MAX_OPEN_FILES`:: Maximum number of open files, defaults to `65536` `MAX_LOCKED_MEMORY`:: Maximum locked memory size. Set to "unlimited" if you use the bootstrap.mlockall option in elasticsearch.yml. You must also set ES_HEAP_SIZE. `MAX_MAP_COUNT`:: Maximum number of memory map areas a process may have. If you use `mmapfs` as index store type, make sure this is set to a high value. For more information, check the https://github.com/torvalds/linux/blob/master/Documentation/sysctl/vm.txt[linux kernel documentation] about `max_map_count`. This is set via `sysctl` before starting elasticsearch. Defaults to `65535` `LOG_DIR`:: Log directory, defaults to `/var/log/elasticsearch`