Skip to content

Commit 1029dc4

Browse files
author
Dale McDiarmid
authored
Merge pull request elastic#106 from emanuelis/master
LimitNOFILE configurable by es_max_open_files
2 parents 03f4a8f + 1d104d7 commit 1029dc4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ es_pid_dir: "/var/run/elasticsearch"
1717
es_data_dirs: "/var/lib/elasticsearch"
1818
es_log_dir: "/var/log/elasticsearch"
1919
es_work_dir: "/tmp/elasticsearch"
20-
es_plugin_dir: "/usr/share/elasticsearch/plugins"
20+
es_plugin_dir: "/usr/share/elasticsearch/plugins"
21+
es_max_open_files: 65536
22+

templates/systemd/elasticsearch.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ StandardOutput=null
3131
StandardError=journal
3232

3333
# Specifies the maximum file descriptor number that can be opened by this process
34-
LimitNOFILE=65535
34+
LimitNOFILE={{es_max_open_files}}
3535

3636
# Specifies the maximum number of bytes of memory that may be locked into RAM
3737
# Set to "infinity" if you use the 'bootstrap.mlockall: true' option
@@ -53,4 +53,4 @@ SendSIGKILL=no
5353
SuccessExitStatus=143
5454

5555
[Install]
56-
WantedBy=multi-user.target
56+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)