# Logstash cluster where one node has very high CPU usage

**URL:** <https://discuss.elastic.co/t/logstash-cluster-where-one-node-has-very-high-cpu-usage/137429>\
**Category:** Logstash\
**Created:** [June 26, 2018, 12:28pm UTC](https://discuss.elastic.co/t/logstash-cluster-where-one-node-has-very-high-cpu-usage/137429 "2018-06-26T12:28:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor.nilsson](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@victor.nilsson](https://discuss.elastic.co/u/victor.nilsson)\
**Post date:** [June 26, 2018, 12:28pm UTC](https://discuss.elastic.co/t/logstash-cluster-where-one-node-has-very-high-cpu-usage/137429/1 "2018-06-26T12:28:32Z")

</div>

Hi

I have two logstash nodes in my cluster which is running the same configuration. I can see and monitor both nodes via Kibana but i'm having an issue where logstash1 is spiking in CPU usage. If i have both nodes running, logstash1 sits around 50-70% CPU usage and logstash2 sits around 1-5% usage. If i turn off logstash1, logstash2 does not increase in CPU usage and insteads sits around 1-5% usage again.

I can see that when i only have logstash2 up and running, my main pipeline is recieving around 100 e/s and when i turn on logstash1 it spikes to around 1600 e/s...

I have nginx set up to load balance a UDP stream consisting of syslog data to the two nodes.  
What could be the cause of this where only logstash1 is having high CPU usage?

---

<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:** [July 24, 2018, 12:28pm UTC](https://discuss.elastic.co/t/logstash-cluster-where-one-node-has-very-high-cpu-usage/137429/2 "2018-07-24T12:28:34Z")

</div>

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