2015-11-27 18:12:59 +00:00
|
|
|
################################
|
|
|
|
|
# Elasticsearch
|
|
|
|
|
################################
|
|
|
|
|
|
|
|
|
|
# Elasticsearch home directory
|
|
|
|
|
ES_HOME={{es_home}}
|
|
|
|
|
|
2020-09-02 02:10:28 -05:00
|
|
|
# Elasticsearch temp directory
|
|
|
|
|
ES_TMPDIR={{ es_tmp_dir }}
|
|
|
|
|
|
2017-08-16 11:05:40 +01:00
|
|
|
# Elasticsearch Java path
|
2020-03-18 16:34:52 -07:00
|
|
|
{% if es_java_home | length > 0 %}
|
2021-03-18 15:32:30 +01:00
|
|
|
ES_JAVA_HOME={{ es_java_home }}
|
2020-03-18 16:34:52 -07:00
|
|
|
{% else %}
|
2021-03-18 15:32:30 +01:00
|
|
|
#ES_JAVA_HOME=
|
2020-03-18 16:34:52 -07:00
|
|
|
{% endif %}
|
2017-08-16 11:05:40 +01:00
|
|
|
|
2015-11-27 18:12:59 +00:00
|
|
|
# Elasticsearch configuration directory
|
2019-06-03 14:18:09 +02:00
|
|
|
ES_PATH_CONF={{ es_conf_dir }}
|
2015-11-27 18:12:59 +00:00
|
|
|
|
|
|
|
|
# Elasticsearch PID directory
|
2019-06-03 14:18:09 +02:00
|
|
|
PID_DIR={{ es_pid_dir }}
|
2015-11-27 18:12:59 +00:00
|
|
|
|
2019-11-26 23:42:17 +01:00
|
|
|
# Additional Java OPTS
|
2019-12-18 11:57:02 +01:00
|
|
|
ES_JAVA_OPTS="{% if es_proxy_host is defined and es_proxy_host != '' %}-Dhttp.proxyHost={{ es_proxy_host }} -Dhttp.proxyPort={{ es_proxy_port }} -Dhttps.proxyHost={{ es_proxy_host }} -Dhttps.proxyPort={{ es_proxy_port }}{% endif %}"
|
2015-11-27 18:12:59 +00:00
|
|
|
|
|
|
|
|
# Configure restart on package upgrade (true, every other setting will lead to not restarting)
|
2019-11-26 23:42:17 +01:00
|
|
|
#RESTART_ON_UPGRADE=true
|
2015-11-27 18:12:59 +00:00
|
|
|
|
|
|
|
|
################################
|
|
|
|
|
# Elasticsearch service
|
|
|
|
|
################################
|
|
|
|
|
|
2019-11-26 23:42:17 +01:00
|
|
|
# SysV init.d
|
|
|
|
|
#
|
2017-01-17 10:48:26 +00:00
|
|
|
# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
|
|
|
|
|
ES_STARTUP_SLEEP_TIME=5
|
|
|
|
|
|
2015-11-27 18:12:59 +00:00
|
|
|
################################
|
|
|
|
|
# System properties
|
|
|
|
|
################################
|
|
|
|
|
|
|
|
|
|
# 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
|
2019-11-26 23:42:17 +01:00
|
|
|
#MAX_OPEN_FILES=65535
|
2015-11-27 18:12:59 +00:00
|
|
|
{% if es_max_open_files is defined %}
|
|
|
|
|
MAX_OPEN_FILES={{es_max_open_files}}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
# The maximum number of bytes of memory that may be locked into RAM
|
2017-01-16 10:40:01 +00:00
|
|
|
# Set to "unlimited" if you use the 'bootstrap.memory_lock: true' option
|
2019-11-26 23:42:17 +01:00
|
|
|
# in elasticsearch.yml.
|
|
|
|
|
# When using systemd, LimitMEMLOCK must be set in a unit file such as
|
|
|
|
|
# /etc/systemd/system/elasticsearch.service.d/override.conf.
|
|
|
|
|
#MAX_LOCKED_MEMORY=unlimited
|
2017-01-17 12:00:49 +00:00
|
|
|
{% if m_lock_enabled %}
|
2015-11-27 18:12:59 +00:00
|
|
|
MAX_LOCKED_MEMORY=unlimited
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
# Maximum number of VMA (Virtual Memory Areas) a process can own
|
|
|
|
|
# When using Systemd, this setting is ignored and the 'vm.max_map_count'
|
|
|
|
|
# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
|
|
|
|
|
#MAX_MAP_COUNT=262144
|
2017-01-17 10:48:26 +00:00
|
|
|
{% if es_max_map_count is defined %}
|
|
|
|
|
MAX_MAP_COUNT={{es_max_map_count}}
|
2018-01-08 16:59:44 -08:00
|
|
|
{% endif %}
|