200 万帖子迁移的 vBulletin 论坛出现 504 网关超时错误

我新安装了一个 Discourse,并导入了一个拥有约 200 万帖子、每日活跃(并发)用户在 200 到 1000 之间的 vBulletin 论坛。

我今天在 Digital Ocean 上启动了一个配备 6 个 vCPU 的 Droplet,但刚开始浏览网站时体验非常糟糕……速度极慢,频繁出现 504 错误等。我将实例扩容到 16 个 vCPU 后,情况有所改善,但仍经常遇到 504 超时。

是否有指南介绍如何在 nginx 中进行配置,以更好地利用可用资源?

负载平均值仍然相当高。

有什么建议吗?

谢谢!

编辑:我意识到在扩容后没有重新构建,也许这会考虑到新的资源?

I believe @pfaffman may have some advice.

You should be on an “optimized” droplet. Cpu speed will be important for your level of traffic.

After you resize you should run

./discourse-setup

Again. It’ll adjust the memory settings. You can control-c after its first message and then

./launcher destroy app
./launcher start app

Rather than letting it rebuild. (a two container installation will reduce downtime during rebuilds)

Things are likely slow due to lots of sidekiq jobs.

If you’d like hands on help tuning your installation my contact information is in my profile.

Awesome, thanks for the quick reply.

I’ll give this a shot and contact you if I run into any more trouble.