# 关于工人数的建议：核心数 × 2？

**URL:** <https://meta.discourse.org/t/recommendation-for-number-of-workers-cores-x-2/363055>\
**Category:** Self-hosting\
**Created:** [2025年四月22日 14:48 UTC](https://meta.discourse.org/t/recommendation-for-number-of-workers-cores-x-2/363055 "2025-04-22T14:48:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2025年四月22日 20:14 UTC](https://meta.discourse.org/t/recommendation-for-number-of-workers-cores-x-2/363055/6 "2025-04-22T20:14:49Z")

</div>

看起来您10年前的CPU已经显露老态了。增加Unicorn工作进程可以允许您同时处理更多用户，但不会让单个请求的速度变快。

您可以尝试启用YJIT吗？

> [@tgxworld](#):
>
> ### Discourse 自托管用户
> 
> 对于自托管 Discourse 的用户，您可以通过在容器定义文件中添加 `enable-ruby-yjit.template.yml` 来启用 YJIT。例如：
> 
> ```plaintext
> templates:
> - 'templates/enable-ruby-yjit.yml'
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/recommendation-for-number-of-workers-cores-x-2/363055)._
