# I just hit my CPU cap on the Digital Ocean 2GB/2xCPU plan

**URL:** <https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [10 فبراير 2016، 9:11م UTC](https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369 "2016-02-10T21:11:27Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ljpp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ljpp/32/96506_2.png) [@ljpp](https://meta.discourse.org/u/ljpp)\
**Post date:** [11 فبراير 2016، 1:12م UTC](https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369/15 "2016-02-11T13:12:32Z")

</div>

So, I went for the 4GB RAM upgrade using Digital Ocean’s flexible resize. Could an expert please advice whether I should modify these settings in app.yml, that are currently in their default values? As said above, the primary **target is to maximize tolerance to large peaks in activity**.

```plaintext
  ## Set db_shared_buffers to a max of 25% of the total memory.
  ##
  ## On 1GB installs set to 128MB (to leave room for other processes)
  ## on a 4GB instance you may raise to 1GB
  #db_shared_buffers: "256MB"
  #
  ## Set higher on large instances it defaults to 10MB, for a 3GB install 40MB $
  ## this improves sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"
```

It seems that at least initially, the CPU load has settled to a slightly lower level with 4GB ram. The users are back already, based on Google Analytics.

 ![](https://global.discourse-cdn.com/meta/original/4X/3/4/1/341fa33c5f0bd3896113d55259a19a56ac9a4436.png)

---

_[View the full topic](https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369)._
