1 # ======================== Elasticsearch Configuration =========================
 
   3 # NOTE: Elasticsearch comes with reasonable defaults for most settings.
 
   4 #       Before you set out to tweak and tune the configuration, make sure you
 
   5 #       understand what are you trying to accomplish and the consequences.
 
   7 # The primary way of configuring a node is via this file. This template lists
 
   8 # the most important settings you may want to configure for a production cluster.
 
  10 # Please see the documentation for further information on configuration options:
 
  11 # <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
 
  13 # ---------------------------------- Cluster -----------------------------------
 
  15 # Use a descriptive name for your cluster:
 
  17 cluster.name: $clustername
 
  19 # ------------------------------------ Node ------------------------------------
 
  21 # Use a descriptive name for the node:
 
  25 # Add custom attributes to the node:
 
  29 # ----------------------------------- Paths ------------------------------------
 
  31 # Path to directory where to store the data (separate multiple locations by comma):
 
  33 # path.data: /path/to/data
 
  36 path.plugins: etc/elasticsearch-plugins
 
  40 # path.logs: /path/to/logs
 
  42 # ----------------------------------- Memory -----------------------------------
 
  44 # Lock the memory on startup:
 
  46 # bootstrap.mlockall: true
 
  48 # Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
 
  49 # available on the system and that the owner of the process is allowed to use this limit.
 
  51 # Elasticsearch performs poorly when the system is swapping the memory.
 
  53 # ---------------------------------- Network -----------------------------------
 
  55 # Set the bind address to a specific IP (IPv4 or IPv6):
 
  57 # network.host: 192.168.0.1
 
  58 network.bind_host: 0.0.0.0
 
  59 network.publish_host: $hostname
 
  61 # Set a custom port for HTTP:
 
  65 # For more information, see the documentation at:
 
  66 # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
 
  68 # --------------------------------- Discovery ----------------------------------
 
  70 # Pass an initial list of hosts to perform discovery when new node is started:
 
  71 # The default list of hosts is ["127.0.0.1", "[::1]"]
 
  73 # discovery.zen.ping.unicast.hosts: ["host1", "host2"]
 
  75 # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
 
  77 # discovery.zen.minimum_master_nodes: 3
 
  79 # For more information, see the documentation at:
 
  80 # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
 
  82 # ---------------------------------- Gateway -----------------------------------
 
  84 # Block initial recovery after a full cluster restart until N nodes are started:
 
  86 # gateway.recover_after_nodes: 3
 
  88 # For more information, see the documentation at:
 
  89 # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
 
  91 # ---------------------------------- Various -----------------------------------
 
  93 # Disable starting multiple nodes on a single system:
 
  95 # node.max_local_storage_nodes: 1
 
  97 # Require explicit names when deleting indices:
 
  99 # action.destructive_requires_name: true
 
 101 # Required for Kibana 4.x support
 
 102 index.max_result_window: 2147483647
 
 103 #transport.tcp.port: 9301