I am trying to setup ES cluster( 3 node) on EC2. I have tried lot of configs but ended with this config:
> cluster.name: ES-CLUSTER
> node.name: ES-NODE-01
> node.max_local_storage_nodes: 1
> node.rack_id: rack_us_east_1d
> index.number_of_shards: 16
> index.number_of_replicas: 1
> gateway.recover_after_nodes: 3
> gateway.recover_after_time: 2m
> gateway.expected_nodes: 3
> discovery.zen.minimum_master_nodes: 3
> discovery.zen.ping.multicast.enabled: false
> cloud.aws.access_key: ********
> cloud.aws.secret_key: ******
> cloud.aws.region: us-east-1
> discovery.type: ec2
> discovery.ec2.groups: groups-name
> plugin.mandatory: cloud-aws,analysis-icu,analysis-phonetic
> http.cors.enabled: true
> http.cors.allow-origin: "*"
> network.host: _ec2:privateIpv4_
> network.bind_host: 0.0.0.0
> network.publish_host: _ec2:privateIpv4_
Now it is working. I am not sure it is right setting or not ?
Can anybody guide me what is right way t do this ?
Thanks