Remah
(Just another happy Discourse user)
2019 年 10 月 19 日午前 1:04
4
タイトルと投稿の両方が「100 万ユーザー」となっているなら、それは間違いには見えません。とにかく、トピックのタイトルを「1M user at the same time」から「1K user at the same time」に変更することをお勧めします。そうすれば、同様の負荷を抱えるユーザーが現れて、実際に何を使っているかを教えてくれるかもしれません。ところで、「RAW サーバー」とは何ですか?もしかして「RAM」の間違いでしょうか?
ブログという前提は無視してください。フォーラムの方がサーバーに対してより高い要件を課すはずです。それでも、ユーザーが実際に何をしているかを考慮する必要があります:
hosting カテゴリには、容量やスケーリングに関する有用なトピックがたくさんあります。以下に、同程度の規模を推定した 2 つの例をご紹介します:
At that scale your server will be ample and over provisioned. A 4GB instance at Digital Ocean would probably be enough.
There are tons of metrics that define load, it is very hard to estimate:
Number of concurrent sessions
Total number of posts in forum
Anon vs Logged in breakdown (anon is WAY cheaper)
Number of uniquely secured categories
And so on…
I am planning to move a rather popular forum from SMF to Discourse. The site has been running very stable of a 1GB Rackspace cloud server, but now I am trying to figure out what would be the minimum requirements with this traffic for running Discourse at Digital Ocean.
Old stats in Finnish: Tappara.co
Members: 1500, with 100 being super active
Concurrent sessions: Can peak to 500-800 users online
Traffic: Potential for 100k page views per 24h
Posts: Thousands per month
This is a fan forum …
それ以上の規模については、8 コアの CPU と 16GB の RAM で運用されていたこのサイトがあります:
Just 15 days ago I shared a new Bitcoin and Cryptocurrency community site that my brother was putting together and it’s been an insane 15 days.
The first day that the site was live it saw a grand total of 796 pageviews – not bad, not bad, right? I was impressed but I wasn’t even remotely prepared for what was to come.
You see, the next day the site didn’t see double the number of pageviews or even triple. It didn’t see 5 or even 10X. The very next day the community site clocked in nearly 60,00…
どのサービスレベルを目指していますか?この投稿(トピック)はお気に入りで、Discourse と従来の(LAMP ベースの)フォーラムを比較しています:
Number of posts made is about the least interesting metric, even more so over such a long time period. Page views is far, far more relevant for determining needed resources. It can be a bit tricky to compare the requests and traffic patterns of a “traditional” mostly-server-generated forum to a Discourse forum, because Discourse is very API-driven, so we often serve multiple HTTP hits per “page view”, but we tend to service each HTTP request a lot quicker, so the forum appears to be a lot more…
クラウドホスティングを利用している場合、データベースのサイズがより重要になることを忘れないでください。ストレージの制限を拡張するために、より多くの費用がかかる可能性があるからです。
参考までに、意思決定の選択肢に関連する追加情報を以下に示します:
Discourse サイトで容量をシミュレーションし、その結果を確認できます:
https://meta.discourse.org/t/simulate-real-discourse-traffic/86818?u=remah
コストを検討している場合、クラウドサーバーはベアメタルサーバーよりもはるかに高価です:
Performance wise there is no comparison; building your own modern servers is crazy fast compared to what you’ll get “in the cloud”.
One brand new top-of-the-line server costs about as much as two months of EC2 web application hosting – Building Servers for Fun and Prof… OK, Maybe Just for Fun
Unless you pay many thousands of dollars per month.
Our hosting bill at he.net is $600/month for the record. That includes “unlimited” 100 Mbps on a gigabit ethernet port, 15 amps, and a full 42U loc…
特定のクラウドホストを使用する必要があるかもしれません。このフォーラムは、そのような要件に対応するためにクラウドホスティングに移行しました。
Perhaps , some high end customers require hosting on AWS cause they need to be in Europe or China, nothing is changing for our hosted customers.
I do want to do a blog post about how much faster and more predictable our hosting is than AWS at some point
追伸:一般的なガイドラインと実世界の例を支援するトピックが作成されることを願っています。