# Optimizing the number of Unicorns and buffer size

**URL:** <https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2016 年 10 月 13 日午後 7:17 UTC](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514 "2016-10-13T19:17:16Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![SimeonGriggs](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SimeonGriggs](https://meta.discourse.org/u/SimeonGriggs)\
**Post date:** [2017 年 10 月 26 日午前 12:24 UTC](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514/11 "2017-10-26T00:24:47Z")

</div>

800k-1.2m pageviews/month. Discourse runs buttery smooth most of the time but then if we ever get 300 concurrent users it grinds to a halt.

Already have `db_shared_buffers` configured to 25% of the host’s 32gb RAM, looking for more possible fixes.

---

_[View the full topic](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514)._
