# CPU pieken door updates/rebuilds

**URL:** <https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523>\
**Category:** Self-hosting\
**Created:** [30 juni 2021 om 16:40 UTC](https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523 "2021-06-30T16:40:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jim\_Starkweather](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim_starkweather/32/181916_2.png) [@Jim\_Starkweather](https://meta.discourse.org/u/Jim_Starkweather)\
**Post date:** [30 juni 2021 om 16:40 UTC](https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523/1 "2021-06-30T16:40:03Z")

</div>

I just had the oddest experience doing a simple reboot of my Amazon Lightsail instance.

1. Did the reboot… waited for restart.
2. Got “502 Gateway Error - Nginx” error message screen on some (I assume uncached) pages). Waited a bit…
3. Did a discourse rebuild via shell.
4. Got an error message that rebuild failed.
5. Use ./discourse-doctor - Also failed.
6. Disabled non-official plugins and rebuilt - Also failed.

Thought I was screwed. And while doing more research checked the forum again only to find it working okay. Which makes zero sense considering discourse doc’s immediate response was WARNING! App not even running! 🙂

My theory is that this might be more do do with Amazon’s burstable limits that anything else. Being that the reboot may have strained the server and that was causing some initial issue with the 502s, but certainly the rebuild shot my server up to 70-80% of burst limits and maybe there was no system resources to run the rebuild scripts?

So my ultimate question is (as this has been something plaguing the update rebuild process), **is there a way to limit the update scripts load on the server and not have it freak out?** I mean this is an 8GB Ram instance so it’s not that weak, etc.

Thanks.. and now I have taken 2 Ativan for no reason. 😃

---

_[View the full topic](https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523)._
