Discourse 在多核环境下扩展性如何?

各位,我在 2 核 2 GB RAM 的 VPS 上运行了 3 个 Discourse 站点(其中一个是开发环境!),零问题且性能出色……但我想知道:

  • 与 2 核相比,1 核服务器是否会限制性能?
  • 当可用时,哪些进程会利用额外的核心?
  • 额外的核心是否有助于同时处理更多的 Web 请求?

对于小型站点和开发站点,将配置 降低 到 1 核是否合理?

是否有人绘制过繁忙服务器的 CPU 使用率图表?

If you’re using multi-site install, my understanding is that the number of sites barely matters, what counts is the number of simultaneously active users on all sites.

Yeah, so performance does scale with cores?

You can serve ~twice as many users at once with double the cores? (assuming I/O can handle it)

No point in having low load dev server on a 2 core server?

(personally not running multi-site … they are all on virtually ‘discrete’ instances).

If you are simply asking if you can downgrade your dev instance, the answer is yes. You likely will never have enough active traffic to warrant the same setup you have for your active production sites.

For comparison purposes, my sandbox/dev site is a 1 core 1 GB RAM box on a 25 GB SSD and when I’m using it, it doesn’t feel sluggish to me at all. Rebuilds can take 15-30 minutes (since it is a full-fledge docker setup – not sure if you used the dev setup or official docker setup, but I imagine it will work with those specs for either).

3 个赞

This one might be of some help

3 个赞