Hosting with the Google Cloud Platform Network/ Infrastructure

Want to learn or teach others some of the finer details of Life is Feudal? This section is for the game guides, tutorials and FAQ's.

Keoir
 
Posts: 13
Joined: 18 Dec 2015, 18:20

Hosting with the Google Cloud Platform Network/ Infrastructure

Post by Keoir » 21 Dec 2015, 17:50

Hello All!
So recently I sat down and configured LiF to host on Google Cloud's Infrastructure to host a Dedicated Server for LiF:YO, so far the server is doing very well with traffic (It is on a Google.com Server), and is performing overall very well. First I want to say that I no way represent Google, I am just familiar with their Platform as I use it in the business work for a SaS application called Attendle.

Here are some benefits to using Google Cloud that I have found so far.
    - Unlike the belief it is rather cheap, and is a lot cheaper than a regular barebone dedi.
    - You have the ability to handle large amounts to traffic on the upstream and downstream as it is on the Google Network
    - With their SQL Engine you can host you LiF:YO DB on their system as well. The SQL Engine provides a fast SQL database, and daily backups plus point in time recovery with their logging.

So Next is the cost! Good news is that Google Cloud Offers $300 of credit for 2 Months as a trial period. So if you sign-up under a google email, you can get two months for free with that. Past that the cost break down is like this.

**Prices are different for each example, as it is based on your use and the network traffic/ storage needed.**


    Server VM Cost: $54.75/ Month
    Network and SSD Cost: $23.00/ Month
    Google SQL Database: $51.49/ Month
    Total Per Month: $177.75/ Month

So the VM of Dedicated Server Instance comes with 3.75 GB of RAM,and 4 Cores. Something I have always enjoyed about Google Cloud is you can detach the disk, and move it to a larger machine if you want to ever upgrade.

First let me say, the Google SQL service is optional, and you can just install MariaDB on the VM directly, so that shaves off some cost right there.

So now, let's get into the details of what you need to do to get started :)

1. Go sign-up for Google Cloud (cloud.google.com), and make sure to click in the top right the button for "Free Trial" to get the $300 Free Credit to use.

2. Once you sign-in and sign-up for the Free Trial you can go to cloud.google.com and go to "Your Console".

3. Once inside your console you will need to go to the hamburger menu on the top left corner of the dashboard and then click Compute Engine.

4. Click Create a New Instance, this is either on the top bar or in the middle to active the engine.

5. In the set-up here is the layout for the Instance that worked for me. You can decide to go higher or lower with the selection of the Instance Machine Type, but it could hinder performance as Windows requires a lot more resources to run than let's say CentOS.

Image

Next you will want to click on "Management, disk, networking, access & security options".

Make sure to match these settings to enable it to run a bit better, and to prevent losing the server.

Image

Image

Image
Make sure to select a New Static IP, a Ephemerial IP changes when the server reboots.

Now you can click create for the Instance and it will start and boot the server for the first time. While that is being set-up we can now work on the network set-up.

6. To begin the network set-up you will need to go to the menu in the top left, and click Networking.

Once you have done that, go to Firewall rules.

We are going to add a new rule to allow the server connections. Use the following settings on the new rule.

Code: Select all
Network: default
Source filter: Allow from any source
Allowed protocols and ports:
tcp:28000-28002; udp:28000-28002; tcp:26001-26003; udp:26001-26003


7. Ok, now you have the network set-up to allow the traffic let's go back to the Compute Engine let's go back and login to the new Windows VM.

Click the menu in the top left again and go back to the Compute Engine, and now you should see your new instance there.

To login to it you will need to click the button on the right of the instance and click to download the RDP
Image

Before you download the RDP file make sure to click "Crate or Reset the Windows Password" as Google Cloud does not give you the password from the start.

Once you have done that...

Click the Download the RDP file, once you download that you can double click it on windows and it will boot you into the machine.

Congrats! You now have a instance on Google Cloud ready for LiF:YO!

If you want to use the Google SQL Engine, continue here. If not you are set and ready to start setting up your server like any other computer!




Google SQL Set-Up.
1. Go to the menu in the top left and click on the SQL button under Storage.

2. Once in this menu, you will want to create a new instance of the SQL Engine.

3. Select the First Generation, as the Second one will not work with LiF:YO.
Image

4. Configure the SQL Engine with the following.
Image
Image

5. Create the SQL Instance

6. Once it is created you are going to go and edit it from the main SQL screen. You will need to add a root user to the SQL Engine, to do so do the following.

Image
Image

You can name the user what ever, as it will have root access. If you want you can also limit it to connections from the Compute Instance IP we set-up before.

7. The SQL Database is all Set-Up!

From here I recommend you follow the following tutorials! If you are using the google SQL Engine you do not need to worry about setting up a database, as you already have one on Google Cloud.

proper-dedicated-server-steps-t2015/
https://steamcommunity.com/sharedfiles/ ... =316928535

If you have any questions or problems make sure to post below and I would be happy to answer any of them!

- Zack
Last edited by Keoir on 28 Dec 2015, 01:15, edited 1 time in total.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: Hosting with the Google Cloud Platform Network/ Infrastructure

Post by Custodian » 22 Dec 2015, 08:48

Thank you for sharing this tutorial.

Keoir wrote:- Unlike the belief it is rather cheap, and is a lot cheaper than a regular barebone dedi.

VM of Dedicated Server Instance comes with 3.75 GB of RAM,and 4 Cores

Total Per Month: $177.75/ Month

But that is insane amount of money for such configuration.

Let's take a look into standard dedicated servers, for example at hetzner:
i7-6700, 32GB Ram, 2x500GB SSD = €46,41 (incl. Vat), 1Gbit network

Thats 3 times cheaper, and atleast 2 times more powerful solution.


Keoir
 
Posts: 13
Joined: 18 Dec 2015, 18:20

Re: Hosting with the Google Cloud Platform Network/ Infrastructure

Post by Keoir » 28 Dec 2015, 01:14

Ok, so I have some more data to share. The initial cost I posted seems to be high, as that is from their price calculator. Currently I am running the whole server solution on Google Cloud of a personal server (lif-rp.com).

Here is the following break down from the past month.
Image

I will post another example of the billing once it goes through a full month cycle :)


Dianadianathales
 
Posts: 1
Joined: 23 Feb 2019, 08:16

Re: Hosting with the Google Cloud Platform Network/ Infrastructure

Post by Dianadianathales » 23 Feb 2019, 12:35

Yeah, Google Cloud is awesome. I have also tried Google Cloud for my online store. However, I am a non technical guy. So, it is really a headache for some one like me to host and manage Google Cloud all by myself. Although, If I do so then too the process is too long that I can't figure it out in one go. So, that's why I opted for managed google cloud server. However, It is Cloudways who made it sustainable enough for someone like me that I too can host and manage it in just one click and in addition they provide 24/7 support as well.
Please don't count me as their representative. They are not paying a single penny. However, I am that much fascinated by their service that I expressing my views here.


Teah
 
Posts: 26
Joined: 14 Jun 2016, 13:49

Re: Hosting with the Google Cloud Platform Network/ Infrastructure

Post by Teah » 26 Apr 2019, 17:51

ill continue to use my old gaming PC thats now my dedicated server for Atlas, YO, and Conan hehe ;)

What was the new grand total for one month on that Google Cloud?

Return to Guides and Tutorials