kibana对接elasticsearch集群中的多个节点

本文介绍如何通过在与Kibana相同的机器上运行Elasticsearch客户端节点来实现跨多个Elasticsearch节点的负载均衡。客户端节点作为智能负载均衡器,能够处理HTTP请求并根据需要将操作重定向到集群中的其他节点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://www.elastic.co/guide/en/kibana/current/production.html#load-balancing


Load Balancing Across Multiple Elasticsearch Nodesedit

If you have multiple nodes in your Elasticsearch cluster, the easiest way to distribute Kibana requests across the nodes is to run an Elasticsearch client node on the same machine as Kibana. Elasticsearch client nodes are essentially smart load balancers that are part of the cluster. They process incoming HTTP requests, redirect operations to the other nodes in the cluster as needed, and gather and return the results. For more information, see Node in the Elasticsearch reference.

To use a local client node to load balance Kibana requests:

  1. Install Elasticsearch on the same machine as Kibana.
  2. Configure the node as a client node. In elasticsearch.yml, set both node.data andnode.master to false:

    # 3. You want this node to be neither master nor data node, but
    #    to act as a "search load balancer" (fetching data from nodes,
    #    aggregating results, etc.)
    #
    node.master: false
    node.data: false
  3. Configure the client node to join your Elasticsearch cluster. In elasticsearch.yml, set thecluster.name to the name of your cluster.

    cluster.name: "my_cluster"
  4. Make sure Kibana is configured to point to your local client node. In kibana.yml, theelasticsearch.url should be set to localhost:9200.

    # The Elasticsearch instance to use for all your queries.
    elasticsearch.url: "http://localhost:9200"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值