# Strange behavior in redis load balancing

**URL:** <https://discuss.elastic.co/t/strange-behavior-in-redis-load-balancing/68573>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 9, 2016, 2:00pm UTC](https://discuss.elastic.co/t/strange-behavior-in-redis-load-balancing/68573 "2016-12-09T14:00:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dshmatov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dshmatov/32/31932_2.png) [@dshmatov](https://discuss.elastic.co/u/dshmatov)\
**Post date:** [December 9, 2016, 2:00pm UTC](https://discuss.elastic.co/t/strange-behavior-in-redis-load-balancing/68573/1 "2016-12-09T14:00:43Z")

</div>

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:

```
filebeat.prospectors:
- input_type: log
  paths:
    - "/var/log/containers/*.log"
  document_type: container-logs
  symlinks: true
  tail_files: true
 
output.redis:
    hosts: ["10.0.0.1","10.0.0.2","10.0.0.3"]
    password: "some password"
    datatype: "list"
    key: "filebeat"
    db: 0
    loadbalance: true
    worker: 1

logging:
  level: error
```

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 9, 2016, 4:35pm UTC](https://discuss.elastic.co/t/strange-behavior-in-redis-load-balancing/68573/2 "2016-12-09T16:35:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2017, 4:35pm UTC](https://discuss.elastic.co/t/strange-behavior-in-redis-load-balancing/68573/3 "2017-01-06T16:35:59Z")

</div>

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