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
0
240
Deploy. Sleep. Repeat.
A Compute Engine Talk. Presented at GDG DevFest 2014 - Philippines.
Ben Adrian Sarmiento
October 25, 2014
Tweet
Share
More Decks by Ben Adrian Sarmiento
See All by Ben Adrian Sarmiento
From Good to Great Engineering Teams
yowmamasita
0
36
Location-aware Marketing Carousel
yowmamasita
0
150
CQRS and Event Sourcing with Prooph
yowmamasita
0
36
Thriving with and within App Engine
yowmamasita
0
27
The (Pseudo)Science of Successful Tech Team Management
yowmamasita
0
56
Other Decks in Programming
See All in Programming
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
640
Ruby Pattern Matching
bkuhlmann
0
930
ゆるい個人開発のススメ
kuroppe1819
10
990
SIMD Parallel Programming with the Vector API
josepaumard
0
160
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
960
VS Code をプロダクトにどう取り込むか
onomax
1
360
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.2k
エンターテイメント業界で利用されるAWS
demuyan
0
210
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
370
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
320
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
Rails Girls Zürich Keynote
gr2m
91
13k
Typedesign – Prime Four
hannesfritz
36
2.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Code Review Best Practice
trishagee
55
15k
Happy Clients
brianwarren
92
6.4k
Design by the Numbers
sachag
274
18k
Web development in the modern age
philhawksworth
202
10k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
Visualization
eitanlees
136
14k
How STYLIGHT went responsive
nonsquared
92
4.8k
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