Skip to content

Instantly share code, notes, and snippets.

@astrobounce
Created August 21, 2018 18:40
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astrobounce/a513cf61d7464d663ca737c41b411a08 to your computer and use it in GitHub Desktop.
Save astrobounce/a513cf61d7464d663ca737c41b411a08 to your computer and use it in GitHub Desktop.
Hot/Warm Node Elasticsearch Configuration
########## Sample elasticsearch.yml ################
cluster.name: < Your Cluster Name >
node.name: < Identified which is generated on installing cluster >
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
node.master: false #### < Value Depends on type of node >
node.data: true #### < Value Depends on type of node >
node.ingest: false #### < Value Depends on type of node >
node.attr.rack: AVAIL_ZONE #### < Shard Allocation Awareness >
node.attr.box_type: "hot" #### < Value which decides whether node is hot or warm >
network.host: 0.0.0.0 #### < Listener on the host >
http.port: 9200 #### <Port on which node would be listening >
########## EC2 and Cluster discovery Related configuration ########
discovery.zen.hosts_provider: ec2 < Zen Discovery Type >
discovery.ec2.groups: staging-elasticsearch-cluster ##### <Pre Created Elasticsearch Cluster Security group , unique for every cluster >
discovery.zen.master_election.ignore_non_master_pings:
discovery.zen.minimum_master_nodes: 2 < Number of master eligible nodes to form cluster, This setting removed split brain scenario >
discovery.ec2.endpoint: ec2.ap-south-1.amazonaws.com
discovery.ec2.host_type: "private_ip"
#### Setting to disable automatic index creation
action.auto_create_index: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment