Hi,
We're using elastic py from elastic 0.9 and we recently migrate to 5.2
We used to create a connection this way:
elasticsearch_server = ('127.0.0.1:9200') es = elasticsearch.Elasticsearch(elasticsearch_server, timeout=10, retry_on_timeout=True, sniff_on_start=False, sniff_on_connection_fail=True, sniff_timeout=10, serializer=JSONSerializerPython2(), sniffer_timeout=30)
Everything is working correctly until I add a new server that doesn't yet exist.
elasticsearch_server = ('127.0.0.1:9200') ---> elasticsearch_server = ('127.0.0.1:9200', '1.2.3.4:9200')
Then it raise a TransportError: TransportError(N/A, 'Unable to sniff hosts - no viable hosts found.')
If I remove the 1234 ip I can connect without problem.
What wrong? if I have 2 serves and I lost one, I can no more run with only one server???
This one was working perfectly with previous version so maybe because of new option?
I checked the doc but found nothing!
If somebody have a tip.
And another things: If I set sniff_on_start=True it raise a TransportError
I return debugging!