Slide 1

Slide 1 text

Deploy. Sleep. Repeat. A Compute Engine Talk Ben Sarmiento

Slide 2

Slide 2 text

Things you need to know before you deploy...

Slide 3

Slide 3 text

pic of google cloud platform logo of compute engine

Slide 4

Slide 4 text

Storage Google Cloud Storage Google Cloud Datastore Google Cloud SQL

Slide 5

Slide 5 text

Services Big Query Google Cloud Endpoints Translate API Prediction API Google Cloud DNS Google Cloud PubSub Google Cloud Dataflow*

Slide 6

Slide 6 text

Compute GCE GAE

Slide 7

Slide 7 text

Big Picture SAAS PAAS IAAS

Slide 8

Slide 8 text

Google Compute Engine ● IaaS ● offers Compute, Storage, Network ● sub-hour billing ● entire OS stack ● self-managed

Slide 9

Slide 9 text

Why Google Compute Engine rocks? scalable consistent cheap

Slide 10

Slide 10 text

How much sleep time will I gain using Compute Engine? scalable consistent cheap

Slide 11

Slide 11 text

I get it, it’s fast

Slide 12

Slide 12 text

Google Compute Engine - persistent disks can be connected to multiple instances - up to 10TB storage, 1TB on SSD - setup Google’s own load balancer for your app - network is a first class citizen - auto-restart/auto-healing - live migration

Slide 13

Slide 13 text

Now onto deploying!

Slide 14

Slide 14 text

Getting started 1. create a GCP project 2. enable billing 3. install Cloud SDK on your machine 4. enable the GCE API

Slide 15

Slide 15 text

Interface ● Cloud Console (UI) ● Cloud SDK (CLI) ● REST API (Code)

Slide 16

Slide 16 text

Images Create instances with images Images = bl + os + fs Possible to use custom images

Slide 17

Slide 17 text

Storage Snapshots (stored in GCS) Persistent Disk (bound to a zone)

Slide 18

Slide 18 text

Scaling problems Scaling up? Scaling out?

Slide 19

Slide 19 text

GAE Setup

Slide 20

Slide 20 text

GCE Setup

Slide 21

Slide 21 text

GAE - GCE Mashup

Slide 22

Slide 22 text

gcloud gcutil being deprecated Creating a new instance gcloud compute --project "file-id-ansytest" instances create "instance-1" --zone "us- central1-f" --machine-type "f1-micro" --network "default" --maintenance-policy "MIGRATE" --scopes "https://www.googleapis.com/auth/devstorage.read_only" --tags "http-server" "https-server" --image "https://www.googleapis.com/compute/v1/projects/debian- cloud/global/images/debian-7-wheezy-v20141021"

Slide 23

Slide 23 text

Config/Management Tools ● Vagrant (vagrant-google) ● Chef (knife-google) ● Puppet (gce_compute) ● Ansible (gce*) ● Salt

Slide 24

Slide 24 text

Sleep

Slide 25

Slide 25 text

Repeat

Slide 26

Slide 26 text

Wrapping up Google Cloud Platform/Google Compute Engine will never gonna: ● give you up ● let you down ● run around and desert you

Slide 27

Slide 27 text

Thank you! @bensarmiento / ~yowmamasita