# Logstash automatic configuration reload CPU consumption

**URL:** <https://discuss.elastic.co/t/logstash-automatic-configuration-reload-cpu-consumption/60415>\
**Category:** Logstash\
**Created:** [September 13, 2016, 5:46pm UTC](https://discuss.elastic.co/t/logstash-automatic-configuration-reload-cpu-consumption/60415 "2016-09-13T17:46:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_McDuff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mcduff/32/11816_2.png) [@Steve\_McDuff](https://discuss.elastic.co/u/Steve_McDuff)\
**Post date:** [September 13, 2016, 5:46pm UTC](https://discuss.elastic.co/t/logstash-automatic-configuration-reload-cpu-consumption/60415/1 "2016-09-13T17:46:06Z")

</div>

I'm currently running Logstash with automated configuration reload so that I may automate the deployment of new configuration without triggering a restart.

I noticed that automated configuration reload is quite CPU intensive. I originally configured a 5 second delay, only to notice constant high CPU usage. Reducing it from 5 seconds to 5 minutes made it better.

By letting logstash run constantly in that mode, I also noticed that CPU consumption to reload the configuration seems to increase. For instance, a config reload used to spike the CPU for a few seconds, but after running for 4 weeks, the same config reload seems to cause a spike of 2 minutes. If I restart Logstash, those spikes get back to a few seconds.

To solve this, I can disable automatic configuration reload and trigger a kill -1 to force the reload.

However, would it be better to make Logstash check for file modifications before recreating the pipelines?

Odds are, the CPU cost of doing a few file size/date/content change checks will be a small fraction of the cost to load them, compile them and stop-start all the pipelines.

---

<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 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/logstash-automatic-configuration-reload-cpu-consumption/60415/2 "2017-07-06T04:38:41Z")

</div>


