Hw to configure ping_retries with ec2 discovery?

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

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

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.

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.

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?

Exactly.