|
| 1 | +# {{ ansible_managed }} |
| 2 | +# ======================== Elasticsearch Configuration ========================= |
| 3 | +# |
| 4 | +# NOTE: Elasticsearch comes with reasonable defaults for most settings. |
| 5 | +# Before you set out to tweak and tune the configuration, make sure you |
| 6 | +# understand what are you trying to accomplish and the consequences. |
| 7 | +# |
| 8 | +# The primary way of configuring a node is via this file. This template lists |
| 9 | +# the most important settings you may want to configure for a production cluster. |
| 10 | +# |
| 11 | +# Please see the documentation for further information on configuration options: |
| 12 | +# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html> |
| 13 | +# |
| 14 | +# ---------------------------------- Cluster ----------------------------------- |
| 15 | +# |
| 16 | +# Use a descriptive name for your cluster: |
| 17 | +# |
| 18 | +# cluster.name: my-application |
| 19 | +# |
| 20 | +# ------------------------------------ Node ------------------------------------ |
| 21 | +# |
| 22 | +# Use a descriptive name for the node: |
| 23 | +# |
| 24 | +# node.name: node-1 |
| 25 | +# |
| 26 | +# Add custom attributes to the node: |
| 27 | +# |
| 28 | +# node.rack: r1 |
| 29 | +# |
| 30 | +# ----------------------------------- Paths ------------------------------------ |
| 31 | +# |
| 32 | +# Path to directory where to store the data (separate multiple locations by comma): |
| 33 | +# |
| 34 | +# path.data: /path/to/data |
| 35 | +# |
| 36 | +# Path to log files: |
| 37 | +# |
| 38 | +# path.logs: /path/to/logs |
| 39 | +# |
| 40 | +# ----------------------------------- Memory ----------------------------------- |
| 41 | +# |
| 42 | +# Lock the memory on startup: |
| 43 | +# |
| 44 | +# bootstrap.mlockall: true |
| 45 | +# |
| 46 | +# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory |
| 47 | +# available on the system and that the owner of the process is allowed to use this limit. |
| 48 | +# |
| 49 | +# Elasticsearch performs poorly when the system is swapping the memory. |
| 50 | +# |
| 51 | +# ---------------------------------- Network ----------------------------------- |
| 52 | +# |
| 53 | +# Set the bind address to a specific IP (IPv4 or IPv6): |
| 54 | +# |
| 55 | +network.host: {{ elasticsearch_network_host }} |
| 56 | +# |
| 57 | +# Set a custom port for HTTP: |
| 58 | +# |
| 59 | +http.port: {{ elasticsearch_http_port }} |
| 60 | +# |
| 61 | +# For more information, see the documentation at: |
| 62 | +# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html> |
| 63 | +# |
| 64 | +# --------------------------------- Discovery ---------------------------------- |
| 65 | +# |
| 66 | +# Pass an initial list of hosts to perform discovery when new node is started: |
| 67 | +# The default list of hosts is ["127.0.0.1", "[::1]"] |
| 68 | +# |
| 69 | +# discovery.zen.ping.unicast.hosts: ["host1", "host2"] |
| 70 | +# |
| 71 | +# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1): |
| 72 | +# |
| 73 | +# discovery.zen.minimum_master_nodes: 3 |
| 74 | +# |
| 75 | +# For more information, see the documentation at: |
| 76 | +# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html> |
| 77 | +# |
| 78 | +# ---------------------------------- Gateway ----------------------------------- |
| 79 | +# |
| 80 | +# Block initial recovery after a full cluster restart until N nodes are started: |
| 81 | +# |
| 82 | +# gateway.recover_after_nodes: 3 |
| 83 | +# |
| 84 | +# For more information, see the documentation at: |
| 85 | +# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html> |
| 86 | +# |
| 87 | +# ---------------------------------- Various ----------------------------------- |
| 88 | +# |
| 89 | +# Disable starting multiple nodes on a single system: |
| 90 | +# |
| 91 | +# node.max_local_storage_nodes: 1 |
| 92 | +# |
| 93 | +# Require explicit names when deleting indices: |
| 94 | +# |
| 95 | +# action.destructive_requires_name: true |
| 96 | +script.inline: {{ elasticsearch_script_inline }} |
| 97 | +script.indexed: {{ elasticsearch_script_indexed }} |
0 commit comments