Hello from Gitpod! (installing on google cloud + automated dev setup)

Quick update, in case that’s helpful to anyone – we’ve successfully deployed Discourse on Google Cloud! :tada: It’s running on https://community.gitpod.io and we’re loving it so far.

Details

I mostly followed INSTALL-cloud, and created a g1-small GCE VM (1 vCPU, 1.7 GB memory) with an additional 20GB SSD. (Note: I originally considered a n1-standard-1 VM, but it seemed a bit overkill for Discourse).

For the VM’s location, based on this blog post, we’ve determined gce-us-east4 to be the best location, since most Gitpod users are in North America and Europe, but also a lot in Asia, so latency shouldn’t get too bad there either.

For the email setup, we really wanted to use our Google Apps account. We’ve tried to configure a Gmail SMTP relay, but even after triple-checking that we were using all the correct protocols and allowed them through GCP firewall and got the correct IPs whitelisted, no email ever went through. Discourse Doctor was a great help, but didn’t succeed either. So eventually we gave up and used SendGrid instead, because we wanted to evaluate it anyway for other things. It was super easy to set up and worked on first try. FYI, our Discourse traffic is growing, but still easily fits within SendGrid’s free tier (100 emails / day).

We then set up GitHub OAuth login (the same as for gitpod.io, for convenience) and installed a few useful plugins:

Also, for the anecdote, I wrote a quick and dirty spectrum-to-discourse.js nodejs script to transfer our old Spectrum threads over to Discourse. The quality isn’t 100% optimal, and there may be a few bugs left in the script, but this was enough to seed our new Discouse. We now manually review/fix/improve old topics when we see them becoming popular.

Hope all this info may help someone in the future! :crossed_fingers:

8 Likes

Sure! I’ve shared more details with you via PM. :slight_smile:

5 Likes

FYI, I’ve now opened a Pull Request for this: DEV: Add fully-automated dev setup with Gitpod by jankeromnes · Pull Request #9026 · discourse/discourse · GitHub

I hope you’ll like it. :slightly_smiling_face:

1 Like

As a quick update, Google Cloud is now recommending to increase the performance of our Discourse instance due to “high memory utilization”:

This instance has had high memory utilization recently. Consider switching to the machine type: custom (1 vCPU, 2.75 GB memory). Learn more

Current machine type
g1-small (1 vCPU, 1.7 GB memory)

New machine type
custom (1 vCPU, 2.75 GB memory) Recommended

But as we haven’t noticed any performance problems ourselves, we haven’t upgraded yet. (Just thought it would be useful to mention the hint here.) So we’ll be paying more attention to memory going forward, and I’ll update this post if we end up doing the suggested upgrade.

3 Likes