スタンドアロンのDiscourseを高速化するための最適な構成

The queuing means you can do with more web workers

Additionally your median times look pretty high, can you get this on a faster CPU?

「いいね!」 2

Unfortunately, even if the reason for the slowness is this plugin, I must say that this plugin is one of the main plugins of our community and can not be removed from us in any way, and users become heavily depended on it! :sweat_smile:

We currently use 24 web workers. Our Discourse is installed on a VM with 24 CPU cores with 2 GHz processing power and 24 GB of RAM. Unfortunately, it is not possible to change the main server now, unless we have no other way to improve performance.

Do you think that in the current situation, increasing the number of web workers can help to improve performance?

More web workers may reduce the queueing

You are trying to eliminate the orange lines from the active web request graph

Performance though will not get any better for your typical median request

「いいね!」 2

Thanks, I understand now. So by looking at the graphs we can see if the number of web workers is enough or not enough for the system.

But according to you, to improve the speed and performance, we now need higher processing power and changing the parameters will not help more.

Be sure to test this at the earliest opportunity and inform the result.

投稿が既存のトピックにマージされました: Telegram Notifications Plugin (discourse-telegram-notifications)

502 の原因は何ですか?ユニコーンワーカーが不足しているのでしょうか?サーバーを移動したばかりで、移動後にユーザーから時折 502 が発生するという報告を受けています。6C/16GB のサーバーがあり、unicorn_workers を 16 に設定しました(サーバー移動前は 12 でした)、db_shared_buffer を 4GB に、db_work_mem を 60MB に設定しました。

ユニコーンワーカーが多すぎると 502 が発生する可能性がありますか?(サーバー移行前に 4 つ少なかったことを考えると推測です)

設定を調整する必要があるのか、それとも対処する必要のある他の何かがあるのかを確認しようとしています。

よろしくお願いします。

はい、それは多すぎます。ユニコーンワーカーはコアあたり1〜2に設定してください。
6コアの場合、12を超えることはありません。かなり大きな共有バッファと私の勘を考慮すると、そのようなサーバー仕様では10程度に設定します。

「いいね!」 2