Strange behavior in redis load balancing

I have current logging delivery flow:
Filebeat -> Redis -> Logstash -> Elasticsearch

Redis and Logstash are deployed in the same server. So I have array of (Redis + Logstash) servers and I whant to load balance my filebeat output requests to this servers array. Documentation says that I need to provide an array of IP's or hostnames and set loadbalance to true in redis config section on filebeat side. When I did it I got traffic jump on all my servers from 10 Mbit/s to 700 Mbit/s. But if I set loadbalance option to false (as Documentation says that server was chosen randomly from array) the traffic becomes normal to 10 Mbit/s. In both cases amout of logs were not changed. I have no clue what happens.

My filebeat configuration file:

- input_type: log
    - "/var/log/containers/*.log"
  document_type: container-logs
  symlinks: true
  tail_files: true
    hosts: ["","",""]
    password: "some password"
    datatype: "list"
    key: "filebeat"
    db: 0
    loadbalance: true
    worker: 1

  level: error

how many logs do you have that will be shipped?

Have you tested max throughput for every single redis instance?

Have you had a look at filebeat log file?

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