Hw to configure ping_retries with ec2 discovery?


#1

I would like to configure ping_retries with ec2 discovery. could someone help with that?

Should I use,

  discovery:
    type: ec2
    ping_retries:20
    zen:
      minimum_master_nodes: 2

or

  discovery:
    type: ec2
    zen.fd:
      ping_retries:20
    zen:
      minimum_master_nodes: 2

(David Pilato) #2

I reformatted your code to make it readable.

In the context of cloud-aws plugin, you have to use: discovery.ec2.ping_timeout. See https://www.elastic.co/guide/en/elasticsearch/plugins/current/cloud-aws-discovery.html#cloud-aws-discovery


#3

Thank you for the response. Document does not say anything about ping_retries. It has the entry only for ping_timeout. can I use ping_retries which is part of zen discovery.


(David Pilato) #4

Hmmm. Interesting. Actually, I think the documentation is wrong about ping_timeout for ec2. I gave a quick look at the code and found that it's probably discovery.zen.ping.timeout

Whatever. It's not your question...

So for fault detection, you should use discovery.zen.fd.ping_retries. So your later proposal should work.


#5

ah ok. Thanks. So in this case i will be using fault detection from zen discovery but the discovery mechanism is ec2. Is that right?


(David Pilato) #6

Exactly.


(system) #7