Skip to content

Instantly share code, notes, and snippets.

@jgerry
Created December 15, 2015 15:09
Show Gist options
  • Save jgerry/b539d3280bba01f528e3 to your computer and use it in GitHub Desktop.
Save jgerry/b539d3280bba01f528e3 to your computer and use it in GitHub Desktop.
elasticsearch.yml
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# THIS FILE IS MANAGED BY CHEF, DO NOT EDIT MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN!
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# See the source file for context and more information:
# <https://github.com/elastic/elasticsearch/blob/master/core/config/elasticsearch.yml>
#
# See the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# To set configurations not exposed by this template, set the `configuration`
# parameter in your `elasticsearch_configure` resource, as a hash of dotted keys
# and string values.
#
# // ...
# 'threadpool.index.type' => 'fixed',
# 'threadpool.index.size' => '2'
# // ...
#
# ---------------------------------- Cluster -----------------------------------
#
cluster.name: elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
node.name: elk-elasticsearch-M2NM2NMT
node.max_local_storage_nodes: 1
#
# ----------------------------------- Paths ------------------------------------
#
path.conf: /etc/elasticsearch
path.data: /data
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
bootstrap.mlockall: true
#
# ---------------------------------- Network -----------------------------------
#
network.host: 0.0.0.0
http.port: 9200
#
# ---------------------------------- Gateway -----------------------------------
#
#
# --------------------------------- Discovery ----------------------------------
#
discovery.zen.ping.multicast.enabled: false
#discovery.zen.minimum_master_nodes: 2
#
# ---------------------------------- Various -----------------------------------
#
action.destructive_requires_name: true
#
# -------------------------- Custom Chef Configuration --------------------------
#
discovery.type: ec2
discovery.type.ec2.tag.discovery: elk
gateway.expected_nodes: 0
index.number_of_replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment