Discourse on Google compute engine


(Gautham N S) #1

From the Google compute engine docs, they support debian and CentOS 6.2. Is it possible to have Discourse up and running with Google compute engine?


(Ben T) #2

Sure, but it does not work out in your favor. It’s just a VPS hosted by them with scaling, much like AWS. However, their smallest instance does not have enough ram to get by, and their second smallest is ~$38 dollars a month excluding bandwith, for less memory than many competing VPS providers. Their prices are per hour so you could test out instances, but it may be worth checking out other options.

You can follow the install guide using ubuntu; or debian with minor changes.


(Ben T) #3

Of course, times change. I wanted to get a fresh look on google’s pricing. While I was at it, I checked out amazon’s current pricing as well. The idea is to look for the minimal usable specs; you can always scale upwards (for a cost.)

###Google Compute Engine, hosted in the US (effective April 1st, 2014):

g1-small - 1 shared core  - 1.70GB memory - $0.035 per hour*

* Not including Sustained Use Discounts. This tricked me at first, but in reality (price per hour * 720 hours) is not what you will end up paying. From google:

Usage per Month     Rate Paid
0%-25%              100% of base rate
25%-50%	            80% of base rate
50%-75%	            60% of base rate
75%-100%	    40% of base rate

Pricing that out, it looks like this for a g1-small. This is assuming it is used the entire month.

100% of 0.035 * 180= $6.30
80% of 0.035 * 180 = $5.04
60% of 0.035 * 180 = $3.78
40% of 0.035 * 180 = $2.52
Total: $17.64 / mo

You have to pay for bandwidth at varying rates. If you’re a high traffic site, you’ll want to look at the pricing more carefully but a rough guess of 5GB/mo outbound at the highest rate is only $1.05. Storage is also a consideration. I can’t check what my small discourse install uses, but 8GB of space is only $0.34 cents per month for a grand total of:

$19.03/month. On average, this could be slightly lower or slightly higher. Not that bad!

##AWS ECS, Hosted in US:

EC2 is big on pricing up-front for steep discounts later. I think that their calculator would do a better job than I would. You’ll need to use at least a m1.small, so the free tier would not help you much. With an upfront payment of $257, you could pay only $9/mo… which is an adjusted cost of $16.77/month. Also not that bad, assuming you can afford the upfront cost.

Bandwidth should be less than $1.00 per month at these scales. Of course, without the upfront price the monthly price goes up to ~$44/mo… which is quite pricey!


(Matthew Burgos) #4

Why not Digital Ocean?


(Ben T) #5

There are many providers out there with varying levels of service… having multiple options is a good thing. DO is a solid platform; others are too.

I didn’t list it above because it’s pretty well covered in the documentation here.


(Matthew Burgos) #6

I guess I should have asked, why Google Compute Engine? Is there a benefit?


(Ueih Gnad) #7

Their network and their reputation, i think no need to use CDN :dragon_face:


(Sam Saffron) #8

No matter how reputable a network is if it is located in USA round trips to China are still going to be 300ms or more. There is this pesky speed of light thing.


(Ueih Gnad) #9

Not fair if you use China to compare ( China almost use great firewall). Even that, Google Network still quite good, alway lower 250ms


Google (max 250 Dubai, max 168 China, Quite Good in Asia)
CA App Synthetic Monitor website monitoring service - Ping - IPv6 now supported, give it a shot!&vaction=ping&ping=Start
Facebook
CA App Synthetic Monitor website monitoring service - Ping - IPv6 now supported, give it a shot!
&vaction=ping&ping=Start
Discourse
CA App Synthetic Monitor website monitoring service - Ping - IPv6 now supported, give it a shot!
Ofcourse ping is just one of point to rate network. But i haven’t seen any other Hosting Provider which has good ping like Google.


(Sam Saffron) #10

You don’t get an entire payload in one round trip due to TCP congestion algorithms, a 180KB file like our JS file will take about 6 or so roundtrips with IW10.


(Michael Downey) #11

Just checking in to see if anyone else has tried running Discourse on Google Compute Engine. Their machine types and pricing don’t quite line up with Digital Ocean so I’m curious whether anyone has a good feeling which might be recommended.

Google just announced $100,000 grants to startups for their cloud services, so it may be something people start to use more frequently.

FWIW, I was able to get an instance easily set up and running (as long as I used port 2525 for SMTP) using CoreOS alpha (which has Docker 1.2.0) on n1-standard-2 (2 vCPU, 7.5 GB memory), but I am pretty sure that’s overkill.


#12

@downey, how do you got it?


(Michael Downey) #13

I just created a new n1-standard-2 size instance, and used SSH to connect to it (Docker is already installed) and followed the Docker installation guide.


#14

Hi guys,

Where I can find step-by-step tutorial to install Discource on the Google Cloud?

Thank you.


(Michael Downey) #15

You’d just set up a new instance on GCE, SSH in to it to get a command line, then follow the same instructions as for Digital Ocean.


#16

This is not the same (for me). I can’t find the ‘droplet’ on the Google console… =(
sorry I’m newbie


(Michael Downey) #17

I’d venture to say that Digital Ocean is quite a bit more user friendly than Google Compute Engine.

Hopefully someone will eventually get Discourse working with the Cloud Launcher at https://cloud.google.com/launcher/explore. But in the mean time, you’ll need to consult the Google support docs to get your server up and running, then once you do you can switch back to the Discourse+DO instructions.


#18

Thanks a lot, Michael! It works! I installed Discourse via Cloud Launcher, but I’m not sure this is a demo or what?


#19

It looks like you installed a Bitnami image. While fine to test and experiment with, for production I would strongly recommend sticking with the officially supported Docker install.


#20

Bitnami doesn’t use docker?

How is gce july 2015 with 30% discount for full cycle billing