Cluster settings from elasticsearch.yml are not working

Hi, I could be doing something wrong. But for some reason the following properties in elasticsearch.yml are not applying to a new cluster.

threadpool.bulk.queue_size : 500
routing.allocation.awareness.attributes: rack,zone
routing.allocation.node_concurrent_recoveries: 5

I've also tried to prefix the with cluster.

I am able to set those properties via the api on a live cluster. But would like to be able to have defaults for new clusters that start up.

To view the properties I am using /cluster/_settings and getting back


Am I missing something?


Per the docs, it's;


Are you also setting these two on your nodes;


Hi Mark, thanks for the quick reply.

I tried both ways, with and without cluster. prefix

I am setting node.rack, and The allocation awareness is working, but I have to manually issue a curl/api post to enable it.

It might be better if you post your config so we can take a look?

Here you go. I've verified that all the variables are set correctly in the environment.

  type: ec2
      Name: ${master}
  data: /data
  name: ${name}
  data: ${is_data}
  master: ${is_master}
  zone: ${zone}
  rack: ${rack}

network.publish_host: "_ec2_"
bootstrap.mlockall: true

threadpool.bulk.queue_size : 500
cluster.routing.allocation.awareness.attributes: rack,zone
cluster.routing.allocation.node_concurrent_recoveries: 5
indices.recovery.max_bytes_per_sec: 50mb

I've been having similar issues with ec2 clustering discovery. Using the following guide and modifying according to the changes from 1.4.4 to 1.5.2 I've got all the different boxes up and running on AWS, but apparently the two elasticsearch nodes aren't joining into a cluster.

Link =

Here's what I've got for my elasticsearch.yml elasticsearch <MY_ACCESS_KEY> <MY_SECRET_KEY> us-west-2

discovery.type: ec2 false

discovery.ec2.groups: my_security_group

discovery.ec2.tag.Name: "ELK - Elasticsearch"

http.cors.enabled: true

http.cors.allow-origin: "*"

It seems that the yml format has changed according to the elastic git for cloud-aws, but I can't quite parse how to make of the correct changes.

I'm happy to provide any other information that would be useful to debug this issue!

Does the IAM user have access to describe instances?
Does the security group allow traffic on 9300 to instances within the security group?
Did you upgrade the aws plugin when you upgraded ElasticSearch?
Do both instances have "ELK - Elasticsearch" as their name?

The config I posted runs fine on es 1.5.2 within an aws vpc

I got my issue resolved. I was using an IAM key pair, but needed my AWS root keys. Once that change was made my devices clustered correctly with the yml file posted above.

To answer the questions:
IAM user was the issue (see above)
Traffic is allowed on 9200, 9300, and 5200
Clean install of all current versions pulled from the site
Yes, both instances have "ELK - Elasticsearch" as their names