原文:
-------------------------------------------
loadbalanceedit
If set to true and multiple Logstash hosts are configured, the output plugin load balances published events onto all Logstash hosts. If set to false, the output plugin sends all events to only one host (determined at random) and will switch to another host if the selected one becomes unresponsive. The default value is false.
output.logstash:
hosts: ["localhost:5044", "localhost:5045"]
loadbalance: true
index: filebeat
loadbalance: true 每一条message都随机负载到一个logstash上
loadbalance: false 随机选择一个logstash使用,每一次的message都发到同一个logstash,当这个logstash响应变慢的时候,就在选择一个来使用。
大神们指点一下是不是这个意思?
-------------------------------------------
loadbalanceedit
If set to true and multiple Logstash hosts are configured, the output plugin load balances published events onto all Logstash hosts. If set to false, the output plugin sends all events to only one host (determined at random) and will switch to another host if the selected one becomes unresponsive. The default value is false.
output.logstash:
hosts: ["localhost:5044", "localhost:5045"]
loadbalance: true
index: filebeat
loadbalance: true 每一条message都随机负载到一个logstash上
loadbalance: false 随机选择一个logstash使用,每一次的message都发到同一个logstash,当这个logstash响应变慢的时候,就在选择一个来使用。
大神们指点一下是不是这个意思?
2 个回复
hailin0
赞同来自:
感觉设置为false,就像是主备的感觉呢?
hailin0
赞同来自: