My forum is: Education.
A large number of readers (students) created Onebox,
As a result, our Sever CPU is overloaded, the website has 2 errors: 502 Bad Gateway and 504 Gateway Time-out error, unable to access the website.
I want to find the solution: Reduce the frequency (reduce the speed) of Onebox creation in Discourse (Onebox is still being generated, but the time it takes to create consecutive oneboxes will be longer).
If we can prolong the creation time of Oneboxs, then our server CPU will not be overloaded.
Thank you.
The easiest thing is likely to increase the ram and or cpu on your server. What are your server specs? How many posts are created each day?
A large number of students make a lot of oneboxes, we have about 10000 students,
I also thought of solutions: Increase CPU, Ram,
However when we tested the CPU, the performance averaged between 25-45%; In some time, our Discourse gets CPU overload, resulting in inaccessibility to our website.
So I wanted another solution,
Jay Pfaffman, Thank you !!!
Did you adjust the memory parameters after adjusting the memory? It sounds like the database is your bottleneck. There are some topics about tuning large servers. That’s where to look.
You can look at the sidekiq queue and see if perhaps those jobs should be in a lower priority queue, but I think database tuning is probably where to look.
私たちも同じ問題を抱えています。サイドキック(低)が速く実行されるため、私たちのディスコースはウェブサイトにアクセスできなくなります。
サイドキックの頻度(低)を調整する方法はありますか?
CPUとRAMを追加するか、ユーザーが作成できるリンク数を制限するかのどちらかだと思います。
問題はほぼ同様です。
SidekiqでSidekiqの実行頻度を減らすにはどうすればよいですか?
以下の画像を参照してください。
SidekiqのLowの実行頻度を減らしたいと考えています。
SidekiqのLowは実行頻度が高すぎる(頻繁に実行される)ため、ウェブサイトのエラーが発生し、読者がウェブサイトにアクセスできなくなっています(502、504)。
Sidekiq: Sidekiq (Low) が1秒あたり何リクエストまで実行できるかを指定したいです。
手伝ってもらえますか?
CPU、RAMは私にとって高くありません。
私のサイドキックでは、Low(サイドキック)が速すぎます。ウェブサイトが失敗します
私の知る限り、Sidekiqはカスタマイズできません。
表示されている数値から判断すると、サーバーのメモリとプロセスを増やすことをお勧めします。
Sidekiq の製品レベル機能チャートを見ると、2 つの点が際立っています。
-
Discourse にバンドルされている基本的な OSS レベルには、以下のものが欠けています。
- レート制限(あなたが求めているものだと思いますか?)
- バッチ(忙しいユーザー時間外に延期できるジョブの作業を行うために使用できるかもしれません)
したがって、ハードウェアの側面を検討する必要があると思います。
しかし、一部のサイトが Pro にアップグレードできるかどうか、またどのくらいの作業が必要か(ライセンス キーを追加するだけですか?)を知ることは興味深いでしょう。誰かが以前にこれを試みたことがあるでしょうか?
Pro 製品は月額 99 ドルと安くはありません。ハードウェアにもっと多くを費やすことを正当化できますか?月額 50 ドルでも、かなりのハードウェアアップグレードを購入できるのではないでしょうか?現在いくら費やしていますか?
Discourse で Pro 製品を使用することを検討したい場合は、Pavilion がお手伝いできますが、そのコンサルティングにも費用がかかります。
また、誰かにホストしてもらい、それらの課題すべてを引き受けてもらうという選択肢もあります。
システムを希望どおりに機能させるためには、予算を大幅に増やす必要があると思います。
データを提供していただけますか?返信あたりのワンボックス数、トピックあたりの返信数、トピックあたりのワンボックス総数はいくつですか?
