问题描述
我的 elasticsearch 集群中有多个节点。如何将流量路由到 metricbeat 配置文件中的多个节点?
解决方法
在您的 metricbeat 配置文件的 Elasticsearch Output 中,您可以像这样以数组格式给出多个节点输出,
hosts: ["https://IP_Node_01:9200","https://IP_Node_02:9200","https://IP_Node_03:9200"]
这提供了故障转移功能,如果节点出现故障,beats 可以连接到其他节点。