Digital Ocean 的 5 美元 Ubuntu Droplet 能否流畅运行 Discourse?

大家好!我最近注册了一个 Digital Ocean 账户,并通过“一键安装 Discourse”功能(选择 Ubuntu 选项)创建了一个 Droplet。

我获取了凭据并登录了管理员账户,甚至在完成 Discourse 初始的 13 个配置问题之前,页面加载速度就开始变得极慢。现在,我已经创建了几个话题,但连一条帖子都没发过,而且目前只有我一个人在访问网站,却随机遇到非常长的加载时间(有些甚至超过 2000 毫秒),以及在浏览网站时(例如从主页点击分类)出现 502 错误网关和 504 网关超时错误。

我曾两次向 Digital Ocean 寻求帮助,说明这是使用他们的安装脚本进行的全新安装,但他们始终表示他们不提供任何形式的软件支持。他们唯一做的是查看到我的内存使用量(1GB)较高,并建议我停止运行某些可能已安装的进程(但实际上我并未安装任何额外软件)。

这是否意味着 5 美元的一键安装 Droplet 对于小型 Discourse 服务器来说根本不够用?根据我所读到的内容,1GB 内存应该足以支撑几十名活跃用户……还是说 Digital Ocean 在其一键安装中捆绑了大量臃肿软件,导致其自身部署无法正常运行,而他们对此却浑然不觉?

比起原因,更重要的是大家会建议我如何解决这个问题?是升级到他们的 10 美元虚拟机?还是创建一个新的原生 Droplet 并自行安装 Discourse?或者在服务器设置中摸索以降低内存使用量?(我的 Unix 技能已经搁置了大约 15 年,但如果必要的话,我可以尝试调整一些设置,最终或许能在不破坏新论坛的前提下移除一些内容。)

提前感谢大家提供的任何建议!

Yes, it is, but you must use our official install guide, not the “one-click”. Long story, but cloud providers really hate when you use swap. :wink:

3 个赞

Hmm, ok, thanks for the link. I’m running through the instructions, but have a question on it, if I may. You say that using swap files are wonky with cloud servers… but when running through the installation, when I run the discourse-setup file, the first thing it tells me is that I may not be able to upgrade Discourse on my <2GB vm without a swap file. Should I ignore that & run without a swap anyways? Or can I enable a swap file manually through my Ubuntu 18.04 shell for the upgrade then just swapoff to get rid of it again?

You misunderstood what I said. We WANT swap, they disavow it.

To be clear: take the defaults. They are defaults for a reason :wink:

4 个赞

Ah, that makes an incredible amount more sense! I did indeed misunderstand what you meant - you’ll have to excuse me, I’m half-idiot on my paternal side. I followed your instructions and the install went smoothly this time - thanks!

Now I cannot, for the life of me figure out how to get mail working, but I’ll post a new topic for that & keep my fingers crossed that you fine folks on the board are feeling generous & can offer some guidance. Regards.

3 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.