Users discuss their experiences hosting Discourse on Google Compute Engine (GCE). P16 praises GCE’s integrated CDN, DNS, and storage, noting it is slightly more expensive and complex than DigitalOcean but a solid product. Falco confirms a small instance runs fine, though P16 recommends upgrading to dual vCPUs to avoid performance spikes. Falco uses a simple single-instance setup rather than instance groups. P16 shares a tip that port 587 is blocked on GCE, suggesting port 2525 for Mailgun, and asks about CDN activation for single instances. shri also runs a single instance but plans to test autoscaling with separate data and web containers. Regarding autoscaling, P16 struggled to assign a static IP, but shri clarifies that static IPs are possible via the load balancer and shares a screenshot of the configuration. P16 reports issues with IP forwarding despite following the method and explains how to configure HTTP/HTTPS on the load balancer. shri questions the utility of a load balancer for single instances and prefers Cloudflare for its features and pricing, though P16 maintains that Google’s CDN was the fastest among four tested options.
I have been testing Discourse on both DO and Google Compute, and have been leaning towards the latter. Their CDN, DNS, storage, speed, etc is impressive, plus everything is built in which makes everything easier. Its slightly more expensive for certain things, and a little bit more complicated to understand than DO through, but its a solid product.
Has anyone here tried Google Compute? Any experiences with regards to Discourse, good or bad?
Thats nice to know. Im running a 2 vCPUs, 7.5 GB, 60GB SSD machine running on Ubuntu. What is your setup like? I was getting a lot of spikes with a single core so shifted to dual.
By the way, are you using their Instance groups/templates option? I had some trouble with their ephemeral IPs with that option.
A tip for anyone configuring email on Google Compute - 587 is blocked (you might be able to enable it through the firewall settings but Im not sure). I used 2525 with Mailgun, and its working nicely.
@Falco Wanted to ask you something regarding Google’s cdn if you are aware. I know if you use Google Storage it acts as a cdn and Im using it to serve static images through a bucket (www.hostname.com) and CNAME. Regarding the instance itself, I have enabled CDN in the load balancing section, but not sure if it gets enabled if you are using a single instance (as we are) versus a group instance (which can be added as a backend in the load balancing section). Do you have any knowledge regarding this? Thanks!
@shri The issue I ran into while trying the autoscale functions was that I couldn’t get a static IP with them. But with the single instance I am still trying to test if their CDN is working. Do you have any info on this?
Here’s a screenshot - you can create an IP address which remains static. You can also create static IPs for your GCE instances. (Looking at this reminds me … I’ve forgotten how to put http and https on the same LB.
@shri i did set up a static IP using that method but it wasn’t forwarding it to my instances. Did you have that issue? As for the https and http, just click on the blue button just below in your screenshot and add https and include your ssl certificate as well.
No clue why. And I’ve never done this for single instance - whats the point of a load balancer (ssl termination?). CDNs are cheaper than the Google LB+CDN.
Generally we build the image, create a group template, setup the group and then setup the LB to point to the group.
If I get time over the next few days, I’ll try setting one up and post instructions.
I did that, but had no luck. Im going to try one more time and see if something changes. I am using them since its just very convenient - you can adjust your instance as you like, use their DNS, storage and CDN. From the four CDNs that I tried, Google was the fastest, closely followed by Fastly and then Keycdn and Cloudflare.