# Automated Load Shedding

**URL:** <https://discourse.nodered.org/t/automated-load-shedding/3348>\
**Category:** General\
**Created:** [21 September 2018 20:22 UTC](https://discourse.nodered.org/t/automated-load-shedding/3348 "2018-09-21T20:22:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShawnHatton](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@ShawnHatton](https://discourse.nodered.org/u/ShawnHatton)\
**Post date:** [21 September 2018 20:22 UTC](https://discourse.nodered.org/t/automated-load-shedding/3348/1 "2018-09-21T20:22:26Z")

</div>

Does anyone know of a way to automate load shedding of internal resources to Node-Red? For example, if my CPU usage is increasing, I would like to shed some low priority flows/processes to prevent a catastrophic failure of a process.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 September 2018 20:29 UTC](https://discourse.nodered.org/t/automated-load-shedding/3348/2 "2018-09-21T20:29:55Z")

</div>

I don't believe that this will be currently possible.

However, it would be an interesting use-case to examine for future development I think? Something for post v1.0 though I suspect.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [21 September 2018 20:43 UTC](https://discourse.nodered.org/t/automated-load-shedding/3348/3 "2018-09-21T20:43:27Z")

</div>

Here is the Linux method how you would achieve it - easy enough to do yourself with an exec node

[http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups](http://blog.scoutapp.com/articles/2014/11/04/restricting-process-cpu-usage-using-nice-cpulimit-and-cgroups)

Craig
