# 每个容器的硬件要求？

**URL:** <https://meta.discourse.org/t/hardware-requirements-for-each-container/84504>\
**Category:** Self-hosting\
**Created:** [2018年四月3日 22:25 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504 "2018-04-03T22:25:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paddy/32/120152_2.png) [@paddy](https://meta.discourse.org/u/paddy)\
**Post date:** [2018年四月3日 22:25 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504/1 "2018-04-03T22:25:02Z")

</div>

So I’ve looked at [the official hardware recommendations](https://github.com/discourse/discourse/blob/88e4c0ec3a0cc68191d257c60a72677c38084029/docs/INSTALL.md#hardware-requirements), and they give (wonderful! Super useful!) hardware recommendations for (what _appears_ to be) _all_ of the containers running on a single host. However, I’d like to have AWS/GCP/etc. host the database using a hosted offering, and would like Redis on a separate instance as well, to try and keep the state isolated from the stateless web server. That way I can autoscale it and take advantage of hosted offerings whenever possible.

My question is: is there any guidance on a per-container basis for hardware suggestions? (Assuming there are more containers involved here than I’m anticipating, I’m mostly asking about the hardware requirements for web/postgres/redis individually.) I’m assuming a good chunk of the 1GB of memory is for Postgres and Redis, and I could get away with serving the webserver on 512MB of RAM for a smaller community, but I wanted to check and see if the Rails app had a baseline I wasn’t considering.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2018年四月3日 23:36 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504/2 "2018-04-03T23:36:43Z")

</div>

There’s only one container by default. About half the memory goes to Redis/PostgreSQL in a typical small-scale setup, so if you’re running a web-only container, on a suitably small-scale site, yes, you could probably get away with a 512MB VM just for the app server.

---

<div class="post-metadata">

**Author:** ![paddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paddy/32/120152_2.png) [@paddy](https://meta.discourse.org/u/paddy)\
**Post date:** [2018年四月3日 23:54 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504/3 "2018-04-03T23:54:23Z")

</div>

Awesome, thanks! Appreciate the insight.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:37 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504/4 "2024-06-08T12:37:36Z")

</div>

此主题已在 2257 天后自动关闭。不再允许回复。
