Kibana elasticsearch.hosts setting (7.1)

I have a 3 nodes cluster (version 7.1) in the following nodes:
xxx.xxx.xx.122
xxx.xxx.xx.123
xxx.xxx.xx.124

And kibana is in xxx.xxx.xx.123. The setting in the kibana.yml for elasticsearch.hosts is:
elasticsearch.hosts : ["https://xxx.xxx.xx.123:9200", "https://xxx.xxx.xx.122:9200", "https://xxx.xxx.xx.124:9200"].

I can run kibana and see cluster health. But when I stop the elasticsearch in xxx.xxx.xx.123 node, I expect kibana to point to other elasticsearch nodes but this is not the case and I get:
{
"message": "Client request error: connect ECONNREFUSED xxx.xxx.xx.123:9200",
"statusCode": 502,
"error": "Bad Gateway"
}

Could someone please tell me why I can't connect. The ES documents say elasticsearch.hosts is an array of the elasticsearch hosts.

Hi @shahab
from our documentation Kibana will transparently connect to an available node and continue operating if another node went down.
This not apply for the case of the Console App that, as stated on the docs, is limited to connecting to the first node listed (as in your case)

https://www.elastic.co/guide/en/kibana/7.1/production.html#high-availability

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.