1 {%- from "elasticsearch/map.jinja" import server with context -%}
2 ################################
4 ################################
6 # Elasticsearch home directory
7 #ES_HOME=/usr/share/elasticsearch
9 # Elasticsearch configuration directory
10 #CONF_DIR=/etc/elasticsearch
12 # Elasticsearch data directory
13 #DATA_DIR=/var/lib/elasticsearch
15 # Elasticsearch logs directory
16 #LOG_DIR=/var/log/elasticsearch
18 # Elasticsearch PID directory
19 #PID_DIR=/var/run/elasticsearch
21 # Heap size defaults to 256m min, 1g max
22 # Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
23 #ES_HEAP_SIZE={{ server.get('heap', {}).get('size', grains.get('mem_total', 1024)/2/1024)|round(0, 'ceil')|int }}g
28 # Maximum direct memory
31 # Additional Java OPTS
34 # Configure restart on package upgrade (true, every other setting will lead to not restarting)
35 #ES_RESTART_ON_UPGRADE=true
37 # Path to the GC log file
38 #ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
40 ################################
41 # Elasticsearch service
42 ################################
46 # When executing the init script, this user will be used to run the elasticsearch service.
47 # The default value is 'elasticsearch' and is declared in the init.d file.
48 # Note that this setting is only used by the init script. If changed, make sure that
49 # the configured user can read and write into the data, work, plugins and log directories.
50 # For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
51 #ES_USER=elasticsearch
52 #ES_GROUP=elasticsearch
54 # The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
55 ES_STARTUP_SLEEP_TIME=5
57 ################################
59 ################################
61 # Specifies the maximum file descriptor number that can be opened by this process
62 # When using Systemd, this setting is ignored and the LimitNOFILE defined in
63 # /usr/lib/systemd/system/elasticsearch.service takes precedence
66 # The maximum number of bytes of memory that may be locked into RAM
67 # Set to "unlimited" if you use the 'bootstrap.mlockall: true' option
68 # in elasticsearch.yml (ES_HEAP_SIZE must also be set).
69 # When using Systemd, the LimitMEMLOCK property must be set
70 # in /usr/lib/systemd/system/elasticsearch.service
71 MAX_LOCKED_MEMORY=unlimited
73 # Maximum number of VMA (Virtual Memory Areas) a process can own
74 # When using Systemd, this setting is ignored and the 'vm.max_map_count'
75 # property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf