# How often UnicastHostsProvider.buildDynamicNodes get called?

**URL:** <https://discuss.elastic.co/t/how-often-unicasthostsprovider-builddynamicnodes-get-called/9092>\
**Category:** Elasticsearch\
**Created:** [September 21, 2012, 8:48am UTC](https://discuss.elastic.co/t/how-often-unicasthostsprovider-builddynamicnodes-get-called/9092 "2012-09-21T08:48:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [September 21, 2012, 8:48am UTC](https://discuss.elastic.co/t/how-often-unicasthostsprovider-builddynamicnodes-get-called/9092/1 "2012-09-21T08:48:06Z")

</div>

Hi

This question is related with my previous one regarding Zen discovery  
settings in EC2 and escaping Java API.

I am not using AWS EC2 discovery because it didn't work in our company's  
EC2 environment. We are using a kind of database for storing the list of  
servers. So, I tweaked a  
little AwsEc2UnicastHostsProvider.buildDynamicNodes() to query our database  
instead of EC2 API.

My question is, how often does this method get called? Is it called  
every discovery.zen.fd.ping\_interval?

Thank you  
Best, Jae

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:12am UTC](https://discuss.elastic.co/t/how-often-unicasthostsprovider-builddynamicnodes-get-called/9092/2 "2017-07-06T03:12:03Z")

</div>

Closed on July 6, 2017, 3:12am UTC


