Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Deploy. Sleep. Repeat.
Search
Ben Adrian Sarmiento
October 25, 2014
Programming
270
0
Share
Deploy. Sleep. Repeat.
A Compute Engine Talk. Presented at GDG DevFest 2014 - Philippines.
Ben Adrian Sarmiento
October 25, 2014
More Decks by Ben Adrian Sarmiento
See All by Ben Adrian Sarmiento
From Good to Great Engineering Teams
yowmamasita
0
56
Location-aware Marketing Carousel
yowmamasita
0
250
CQRS and Event Sourcing with Prooph
yowmamasita
0
46
Thriving with and within App Engine
yowmamasita
0
35
The (Pseudo)Science of Successful Tech Team Management
yowmamasita
0
71
Other Decks in Programming
See All in Programming
GitHub Copilot CLIのいいところ
htkym
2
560
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
110
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
4
510
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
380
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
530
ソースコード→AST→オペコード、の旅を覗いてみる
o0h
PRO
1
140
[BalkanRuby 2026] Drop your app/services!
palkan
3
630
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1.1k
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
160
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
280
Modding RubyKaigi for Myself
yui_knk
0
390
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
3
430
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
New Earth Scene 8
popppiees
3
2.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Un-Boring Meetings
codingconduct
0
290
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
A designer walks into a library…
pauljervisheath
211
24k
The browser strikes back
jonoalderson
0
1.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Fireside Chat
paigeccino
42
3.9k
Transcript
Deploy. Sleep. Repeat. A Compute Engine Talk Ben Sarmiento
Things you need to know before you deploy...
pic of google cloud platform logo of compute engine
Storage Google Cloud Storage Google Cloud Datastore Google Cloud SQL
Services Big Query Google Cloud Endpoints Translate API Prediction API
Google Cloud DNS Google Cloud PubSub Google Cloud Dataflow*
Compute GCE GAE
Big Picture SAAS PAAS IAAS
Google Compute Engine • IaaS • offers Compute, Storage, Network
• sub-hour billing • entire OS stack • self-managed
Why Google Compute Engine rocks? scalable consistent cheap
How much sleep time will I gain using Compute Engine?
scalable consistent cheap
I get it, it’s fast
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
Now onto deploying!
Getting started 1. create a GCP project 2. enable billing
3. install Cloud SDK on your machine 4. enable the GCE API
Interface • Cloud Console (UI) • Cloud SDK (CLI) •
REST API (Code)
Images Create instances with images Images = bl + os
+ fs Possible to use custom images
Storage Snapshots (stored in GCS) Persistent Disk (bound to a
zone)
Scaling problems Scaling up? Scaling out?
GAE Setup
GCE Setup
GAE - GCE Mashup
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"
Config/Management Tools • Vagrant (vagrant-google) • Chef (knife-google) • Puppet
(gce_compute) • Ansible (gce*) • Salt
Sleep
Repeat
Wrapping up Google Cloud Platform/Google Compute Engine will never gonna:
• give you up • let you down • run around and desert you
Thank you! @bensarmiento / ~yowmamasita