Re: [ansible-project] Re: Rolling Restart an Elasticsearch Cluster with Ansible

2014-09-18 Thread 'Ludovic Petetin' via Ansible Project
Hi, I'm operating a Solr Cluster of 50 servers and I have been confronted to the same question than you. The warmup of the Solr index can take up to 30 seconds and wait_for on the port was not enough. At first, I wrote a new module to launch a query every X seconds and expect a result (wait_for

Re: [ansible-project] Re: Rolling Restart an Elasticsearch Cluster with Ansible

2014-09-17 Thread Brian Coca
well, in that case I would use wait_for to let the server come up and then get_url inside a do-until loop to get the 'green light'. -- Brian Coca Stultorum infinitus est numerus 011101110010011001010110111000100111011101100001011001110101001001110011011011010111011100

[ansible-project] Re: Rolling Restart an Elasticsearch Cluster with Ansible

2014-09-17 Thread Lance A. Brown
Brian Coca said the following on 9/17/2014 10:22 PM: > check the wait_for module, it was created for these situations. How do you make wait_for wait on an URL? I know you can have it wait on a socket to come up and look for data on the port connection, but I need more than that to ensure the clus