أفضل الإعدادات لتسريع 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؟ هل هو عدم وجود عدد كافٍ من عمال unicorn؟ لقد انتقلنا للتو إلى خوادم جديدة ويقوم المستخدمون بالإبلاغ عن أخطاء 502 بشكل متقطع بعد الانتقال. لدينا خادم 6C/16GB، وقد قمنا بتعيين unicorn_workers إلى 16 (قبل الانتقال إلى الخادم الجديد كان 12)، و db_shared_buffer إلى 4 جيجابايت، و db_work_mem إلى 60 ميجابايت.

هل يمكن أن يتسبب وجود عدد كبير جدًا من عمال unicorn في حدوث أخطاء 502؟ (تخمين نظرًا لأن لدينا 4 عمال أقل قبل ترحيل الخادم)

أحاول معرفة ما إذا كان التكوين هو ما نحتاج إلى تعديله أم شيء آخر نحتاج إلى معالجته.

شكرًا.

نعم، هذا يبدو مرتفعًا. اضبط عمال unicorn لديك بين 1 و 2 لكل نواة.
بالنسبة لـ 6 نوى، يجب ألا يزيد عن 12. نظرًا لمخزنك المؤقت المشترك الكبير نسبيًا وحدسي، سأضبطه على حوالي 10 بمواصفات الخادم هذه.

إعجابَين (2)