# Redis input plugin high CPU

**URL:** <https://discuss.elastic.co/t/redis-input-plugin-high-cpu/103752>\
**Category:** Logstash\
**Created:** [October 12, 2017, 2:54pm UTC](https://discuss.elastic.co/t/redis-input-plugin-high-cpu/103752 "2017-10-12T14:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danuuk](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@danuuk](https://discuss.elastic.co/u/danuuk)\
**Post date:** [October 12, 2017, 2:54pm UTC](https://discuss.elastic.co/t/redis-input-plugin-high-cpu/103752/1 "2017-10-12T14:54:35Z")

</div>

Hello!

We faced some issues with our Redis & Logstash setup.

> syslog\_data --\> |-\>rsyslog-\>redis-\>logstash-\>| --\> elastic'

RSyslog & Redis & Logstash -- are installed on one physical server (8x cores,). I try to improve and analyze performance of the setup.

In total, we receive ~22K EPS from our firewalls. I disabled all the filters on logstash. So, in the clear environment we have the 22K EPS.

But in this case I saw the CPU usage by redis input thread:

> 23251 logstash 39 19 23.116g 782196 11232 S **70.0** 2.4 5:03.23 **[main]\<redis**  
> 23250 logstash 39 19 23.116g 782196 11232 S **68.3** 2.4 5:03.43 **[main]\<redis**  
> 23255 logstash 39 19 23.116g 782196 11232 R **66.3** 2.4 5:07.66 **[main]\<redis**  
> 23252 logstash 39 19 23.116g 782196 11232 S **65.3** 2.4 5:02.04 **[main]\<redis**  
> 23249 logstash 39 19 23.116g 782196 11232 R **63.0** 2.4 5:10.02 **[main]\<redis**  
> 23248 logstash 39 19 23.116g 782196 11232 S **62.0** 2.4 5:03.48 **[main]\<redis**  
> 23253 logstash 39 19 23.116g 782196 11232 R **55.3** 2.4 5:02.23 **[main]\<redis**  
> 23254 logstash 39 19 23.116g 782196 11232 S **48.3** 2.4 4:59.23 **[main]\<redis**

It looks pretty high to me. Our current input config:

> input {  
> redis {  
> data\_type =\> "list"  
> key =\> "rsyslog\_logstash"  
> batch\_count =\> 125  
> type =\> syslog  
> codec =\> "json"  
> threads =\> 8  
> }  
> }

Is it normal situation? I'm afraid that cpu usage may impact the performance with enabled filters.

Thanks!

---

<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:** [November 9, 2017, 2:55pm UTC](https://discuss.elastic.co/t/redis-input-plugin-high-cpu/103752/2 "2017-11-09T14:55:00Z")

</div>

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