Jiangbo
Jiangbo

Reputation: 29

How to configure kibana for multiple nodes in the same cluster?

I have a ES cluster with three nodes, and the master will produce through election. So I want to know how to make Kibana listen to the cluster rather than only for one node like using elasticsearch.url: "http://localhost:8200". Thanks

Upvotes: 1

Views: 9765

Answers (3)

Val
Val

Reputation: 217304

This is not possible right now, there's an open issue about it: #214 (opened for 2+ years)

Kibana 4 can currently only reverse-proxy a single ES host. You don't necessarily need to reference a master node. You could create a small client node (with master: false and data: false), add it to your cluster and configure Kibana to point at it. That way you get load-balancing for free and don't need to care if the master changes or goes down.

UPDATE

As of Kibana 6.6, it is possible to provide multiple ES hosts

Upvotes: 3

Milind Gunjan
Milind Gunjan

Reputation: 1

You can use a reverse-proxy/load-balancer but it gets messy. A simpler solution will be to install Elasticsearch with coordinating-only node configuration on same machine/VM/instance as Kibana with following configurations: 1. Add these lines to elasticsearch.yml for coordinating-only node.

node.master: false 
node.data: false 
node.ingest: false 
  1. Update the discovery.zen.ping.unicast.hosts to add the new node (coordinating-only). In your case, there will be 4 hosts.
  2. refer to localhost: in kibana dashboard configuration file.

Hope this helps.

Upvotes: 0

CloudStax
CloudStax

Reputation: 669

Kibana suggests to "run an Elasticsearch Coordinating only node on the same machine as Kibana". Load Balancing Across Multiple Elasticsearch Nodes describes the details about how to configure the ElasticSearch Coordinating node for Kibana.

Upvotes: 0

Related Questions