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

**URL:** https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [2018年十一月28日 22:13 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030 "2018-11-28T22:13:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![StevenBee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenbee/32/125595_2.png) [@StevenBee](https://meta.discourse.org/u/StevenBee)
#### Post date: [2018年十一月28日 22:13 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/1 "2018-11-28T22:13:00Z")

</div>

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

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

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

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

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

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十一月28日 23:44 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/2 "2018-11-28T23:44:07Z")

</div>

Yes, it is, but you must use [our official install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md), not the “one-click”. Long story, but cloud providers really hate when you use swap. 😉

---

<div class="post-metadata">

### Author: ![StevenBee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenbee/32/125595_2.png) [@StevenBee](https://meta.discourse.org/u/StevenBee)
#### Post date: [2018年十一月29日 01:11 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/4 "2018-11-29T01:11:53Z")

</div>

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?

 ![to%20swap%20file%20or%20not%20to%20swap%20file](https://global.discourse-cdn.com/meta/original/3X/3/9/3942b2ce6109e11df174043a2d4d03adadd0ebe6.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年十一月29日 01:18 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/5 "2018-11-29T01:18:11Z")

</div>

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

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

---

<div class="post-metadata">

### Author: ![StevenBee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenbee/32/125595_2.png) [@StevenBee](https://meta.discourse.org/u/StevenBee)
#### Post date: [2018年十一月29日 06:49 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/6 "2018-11-29T06:49:41Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018年十二月29日 06:49 UTC](https://meta.discourse.org/t/can-digital-oceans-5-ubuntu-droplet-run-discourse-ok/103030/7 "2018-12-29T06:49:45Z")

</div>

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