swsnu / swppfall2021

Learning Software Engineering By Building Web Services
28 stars 19 forks source link

[Deployment] Google Compute Engine #175

Open kdh0102 opened 2 years ago

kdh0102 commented 2 years ago

If AWS Free-tier machine CPU and memory is not sufficient to serve your web sites, please consider trying Google compute engine. Google Compute engine supports $300 for the first 90 days. The followings are some manual to deploy your service with Google Compute Engine.

1. Go to Compute Engine console

2. Click create instance

Screen Shot 2021-12-11 at 12 02 13 AM

3. Set region and machine configuration

4. Set boot dist to ubuntu

Screen Shot 2021-12-11 at 12 03 08 AM Screen Shot 2021-12-11 at 12 03 18 AM

5. Allow http/https

Screen Shot 2021-12-11 at 12 03 26 AM

6. Create instance

Screen Shot 2021-12-11 at 12 04 00 AM

7. (Optional) To allow more ports, click View network details. (Check the above screenshot)

8. And click Create firewall rule.

Screen Shot 2021-12-11 at 12 04 38 AM

9. Configure your firewall settings.

10. Access your instance.

More on Pricing Info

https://cloud.google.com/compute/vm-instance-pricing

silvermanseoul commented 2 years ago

If your process is killed by OOM and you don't want to migrate to GCP, you can allocate memory to work as swap space in AWS EC2.