I followed this link to create an elasticsearch 2 nodes cluster on Azure: this 
link <http://thomasardal.com/running-elasticsearch-in-a-cluster-on-azure/>

the installation and configuring went good.

When i started to check the cluster i found a strange behaviour from the 
php client.

I declared 2 hosts in the client:

$ELSEARCH_SERVER = array("dns1:9200","dns2:9200");
$params = array();
$params['hosts'] = $ELSEARCH_SERVER;
$dstEl = new Elasticsearch\Client($params);

the excpected behaviour is that it will try to insert the documents to 
"dns1" and if it fails it will *automatically* change to "dns2". but, for 
some reason when one of the servers is down on insertion the php client 
throws an exception that it couldn't connect to host and only.

Is there any way to cause the client automatically choose an online server?

thnx, Niv

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7489eb44-bff3-41d1-baa1-da70b508ef66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to