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
gcpug-20150417-gcp-aws
Search
rrreeeyyy
April 20, 2015
Technology
6
8.6k
gcpug-20150417-gcp-aws
「GCPを検討しているエンジニアのための Compute Engine と AWS の比較」 というタイトルで #gcpug 2015/04/17 で喋った時の資料です
rrreeeyyy
April 20, 2015
Tweet
Share
More Decks by rrreeeyyy
See All by rrreeeyyy
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
190
An Efficient Incident Response Training with AI / SRE NEXT 2024 Sponsor Session
rrreeeyyy
1
3.9k
カンファレンスから見る SRE トレンド 2024 / SRE Trends from Conferences in 2024 #SRE_Findy
rrreeeyyy
4
2.2k
信頼性の育て方 / mackerel-meetup-15
rrreeeyyy
10
2.5k
SRE の歩き方・進め方 / sre-walk-through-procedure
rrreeeyyy
0
8.6k
「信頼性」を保ちつつ大規模サービスをリニューアルする / cookpad-tech-kitchen-service-embedded-sres
rrreeeyyy
11
12k
Cookpad and Prometheus
rrreeeyyy
6
20k
SRE-Lounge-8-Cookpad-Microservice-Architecture-Overview
rrreeeyyy
5
5.3k
A survey of anomaly detection methodologies for web system
rrreeeyyy
5
1.3k
Other Decks in Technology
See All in Technology
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
Unsafe.BitCast のすゝめ。
nenonaninu
0
200
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
機械学習を「社会実装」するということ 2025年版 / Social Implementation of Machine Learning 2025 Version
moepy_stats
5
980
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
アジャイルチームが変化し続けるための組織文化とマネジメント・アプローチ / Agile management that enables ever-changing teams
kakehashi
3
3.3k
20250116_JAWS_Osaka
takuyay0ne
2
200
I could be Wrong!! - Learning from Agile Experts
kawaguti
PRO
8
3.4k
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
1
16k
DMMブックスへのTipKit導入
ttyi2
1
110
Azureの開発で辛いところ
re3turn
0
240
月間60万ユーザーを抱える 個人開発サービス「Walica」の 技術スタック変遷
miyachin
1
140
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
Designing for Performance
lara
604
68k
Become a Pro
speakerdeck
PRO
26
5.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Building an army of robots
kneath
302
45k
Unsuck your backbone
ammeep
669
57k
Adopting Sorbet at Scale
ufuk
74
9.2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Visualization
eitanlees
146
15k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Transcript
Google Cloud Platform & Amazon Web Service Google Cloud Platform
& Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 1
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 2
ࣗݾհ • Yoshikawa Ryota ( @rrreeeyyy ) • גࣜձࣾϋʔτϏʔπ (
http://heartbeats.jp ) • Managed Service Providor ͷձࣾͰ͢ • Linux ܥͷαʔόࢹ/ཧΛओʹ͍ͬͯ·͢ • ج൫։ൃάϧʔϓ ج൫։ൃΤϯδχΞ • ࣗಈԽɾࢹۀʹؔΘΔϓϩμΫτ࡞ͳͲ͕ओͰ͢ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 3
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 4
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 5
GCP ͱ AWS • (Google|Amazon) ͷఏڙ͢ΔΫϥυαʔϏε • IaaS/PaaS/SaaS ͷෳͷαʔϏεΛ·ͱΊ໊ͨশ •
GCP Google I/O 2013 Ͱൃද • ͱݴ͑ੲ͔Β App Engine ͷαʔϏε͋ͬͨ • AWS 2006 7 ݄ʹൃද • ຖαʔϏεϦʔδϣϯΛՃ͠ண࣮ʹ͍ͯ͠Δ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 6
࠷ॳʹॴײ - GCP • GCP ߴ͍ٕज़ྗΛϕʔεʹͨ͠αʔϏεల։ • Google ͕ࣾࣗࣾͷҝʹ։ൃٕͨ͠ज़͕ΈΜͳ͑Δ •
ಛʹ ࢄॲཧ/ෛՙࢄ/ԾԽ/ίϯςφԽ/NW ... ͕ڧ͍ • Google Compute Engine (& Load Balancer) • Google Container Engine/Google App Engine • Google BigQuery ͷαʔϏεʹݱΕͯΔ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 7
࠷ॳʹॴײ - AWS • AWS ϢʔβχʔζΛϕʔεʹͨ͠αʔϏεల։ • ࠓΫϥυͷσϑΝΫτελϯμʔυ • ๛ͳαʔϏε/ར༻ࣄྫ/ར༻ݟ
• ΄ͱΜͲͷࣄ͕ AWS Ͱ݁Ͱ͖Δʂ • ݟ͕๛ʹ͋ΓɺϢʔβ͕࡞ͨ͠πʔϧଟ͋͘Δ • બΔΠϯελϯελΠϓ/σʔλϕʔελΠϓ๛ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 8
GCP ͷ֤ػೳΛ AWS ͷػೳͱൺֱ͠ͳ͕Βհ Google Cloud Platform & Amazon Web
Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 9
GCP - AWS αʔϏεରԠද 0 0 http://gihyo.jp/admin/serial/01/google-cloud-platform/0001 (ࣅ͍ͯΔαʔϏεͷରԠͳͷͰҧ͏ͱ͜Ζ͋Γ·͢) Google Cloud
Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 10
Google Compute Engine (GCE) Google Cloud Platform & Amazon Web
Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 11
Google Compute Engine (GCE) • Google ͷ IaaS • ىಈ͕ͱͯૣ͍(େମ
30 ඵఔ) • ͞ΕͨϥΠϒϚΠάϨʔγϣϯ 1 • Developer Console Λ͍ϒϥβ͔Β SSH ૢ࡞Մೳ • ී௨ͷσΟεΫͷϥϯμϜ I/O ͕ૣ͍ 1 http://www.rightscale.com/blog/cloud-industry-insights/google-compute-engine-live-migration-passes-test Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 12
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 13
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 14
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 15
GCE <=> Amazon EC2 • (ΠϯελϯελΠϓ|αϙʔτ OS) EC2 ͷํ͕গ͠ଟ͍
• ͱ͍͑ GCE ͰجຊతʹࠔΒͳ͍͙Β͍͋Δ • ϋΠεϖοΫͳΠϯελϯε EC2 ͷํ͕ଟ͍ • GCE ͔Βجຊతʹϝʔϧ͕ૹΕͳ͍ • SendGrid ͷ֎෦αʔϏεΛ͏ 2 2 https://cloud.google.com/compute/docs/tutorials/sending-mail Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 16
GCE <=> Amazon EC2 • EC2 ϦβʔϒυΠϯελϯε/εϙοτΠϯελϯε͕͋Δ • ར༻ํ๏ʹΑ্͕ͬͯ҆͘Δ͜ͱ͋Δ͔ •
GCE Sustained use discounts ͕͋Δ • ͘͏͚ͩͰউखʹ҆͘ͳ͍ͬͯ͘ • GCE 1 ୯Ґ/ EC2 1 ࣌ؒ୯ҐͰ՝ۚ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 17
GCE Loadbalancer Google Cloud Platform & Amazon Web Service (2015/04/17)
- Yoshikawa Ryota ( @rrreeeyyy ) 18
GCE Loadbalancer • GCE/GKE(ޙड़) Ͱར༻Ͱ͖Δϩʔυόϥϯαػೳ • Network Loadbalancer ͱ HTTP
Loadbalancer ͕͋Δ • ΥʔϜΞοϓෆཁ (google.com ͱಉ͡Πϯϑϥ) • 100 ສϦΫΤετ/ඵΛࡹ͚ΔϕϯνϚʔΫ݁Ռ • ΤοδΩϟογϡΛར༻͢Δ͜ͱ͕ग़དྷΔ 3 3 http://qiita.com/sinmetal/items/37c105a098174fb6bf77 Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 19
GCE Loadbalancer <=> Amazon ELB • ELB • SSL termination
͕ग़དྷΔ(GCE ࣮༧ఆΒ͍͠) • Cookie ΛͬͯηογϣϯΞϑΟχςΟΛ࣮ݱͰ͖Δ • GCE ͷ HTTP Loadbalancer • ϦʔδϣϯΛ·͍ͨͩόϥϯγϯά͕ग़དྷΔ • ίϯςϯπϕʔεϧʔςΟϯά(URL ʹԠͨ͡ৼΓ͚) Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 20
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 21
Google Cloud Storage Google Cloud Platform & Amazon Web Service
(2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 22
Google Cloud Storage • Google ͷΦϒδΣΫτετϨʔδ SaaS • σʔλΛࣗಈతʹ҉߸Խͯ͠อଘ •
CDN ʹ͋ͨΔͷ͕࠷ॳ͔Βਵ͍ͯ͠Δ • Standard/Durable Reduced Availability(DRA)/Nearline ͷ3छ • DRA Standard ΑΓՄ༻ੑ͕͍͕ɺ͍҆ • Nearline ҆ՁͰߴͳίʔϧυσʔλετϨʔδ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 23
Google Cloud Storage <=> Amazon S3 • Website ͷϗεςΟϯάग़དྷΔ(྆ํ) •
Object Change Notification ͕͋Δ • AWS Ͱ lambda ͷαʔϏεͱ࿈ܞ͢Εग़དྷͦ͏ • Nearline Glacier ͱಉͩͱߟ͑ΔͱϨΠςϯγ͕͍ • େ͖ͳࠩͳͦ͞͏ͳͷͰ࿈ܞαʔϏεʹԠͯ͡બͿͱ٢ʁ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 24
Google Cloud SQL Google Cloud Platform & Amazon Web Service
(2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 25
Google Cloud SQL • Cloud SQL MySQL ͷΈͷαʔϏε •
ΤϯυϙΠϯτ IP ΞυϨε • MySQL 5.5 (5.6 ͑Δ͕ stable Ͱͳ͍) • ࣗಈతͳϚΠφʔόʔδϣϯΞοϓ • MySQL ͕࠶ىಈ͞Εඵͷஅ͕ى͖Δ͜ͱ͕͋Δ • (ϑΣΠϧΦʔό|εϖοΫมߋ)ඵͰऴΘΔ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 26
Google Cloud SQL <=> Amazon RDS • Read Replica/Multi AZ
ͷجຊతͳػೳ྆ํ͑Δ • RDS MySQL Ҏ֎ʹ৭ʑ͑Δ͠ग़དྷΔࣄଟ͍ • MySQL/Postgres/Oracle/SQL Server ... • Cloud SQL Πϯελϯεͷىಈ͕࣌ؒૣ͍ • ΞΫςΟϕʔγϣϯϙϦγʔ(ଓ͕དྷͨΒىಈɺ) • ࣗಈϚΠφʔόʔδϣϯΞοϓ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 27
Google BigQuery Google Cloud Platform & Amazon Web Service (2015/04/17)
- Yoshikawa Ryota ( @rrreeeyyy ) 28
Google BigQuery • Google ͷϏοάσʔλղੳ SaaS • TB/PB ڃͷσʔλʹରͯ͠ SQL
ϥΠΫͳΫΤϦΛൃߦͰ͖Δ • ඵʙेඵ୯ҐͰ݁Ռ͕ฦͬͯ͘Δ • ՝͕ۚΫΤϦ୯Ґͱ͔ͳͷͰɺ͙͢ࢼͤΔ • େྔʹΫΤϦΛൃߦ͢Δͱ͔Ͱͳ͚Ε҆Ձ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 29
Google BigQuery <=> Amazon Redshift • ಉ͡ྖҬΛΧόʔ͢Δͷͷ΄΅ҧ͏αʔϏε • େ͖ͳձࣾͰ BI
πʔϧΛ࡞ΔΑ͏ͳ࣌ Redshift ͕ྑͦ͞ ͏ • ͍ҙຯͰͷσʔλղੳΈ͍ͨͳͷ BigQuery ͕ྑͦ͞͏ • εέʔϧͷྀෆཁ/ׂͱ؆୯ʹ࢝ΊΒΕΔ • ݸਓͷײͰ͢ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 30
Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa
Ryota ( @rrreeeyyy ) 31
Google App Engine Google Cloud Platform & Amazon Web Service
(2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 32
Google App Engine (GAE) • ݴΘͣͱΕͨ Google ͷ PaaS αʔϏε
• ΞϓϦ։ൃऀ͕͍͜ͳͤΔͳΒͱͯศར • ΠϯϑϥΤϯδχΞ͕ډͳͯ͘ͳΜͱ͔ͳΔ • ͪΖΜ PaaS ͳͷͰ IaaS ΑΓ੍ݶతʹͳͬͯΔ • ϩοΫΠϯ͞ΕΔ • ΑΓৄ͍͠ਓձʹࢁ͍ΔͷͰฉ͖·͠ΐ͏ʂ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 33
Google Container Engine Google Cloud Platform & Amazon Web Service
(2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 34
Google Container Engine (GKE), Amazon ECS • GKE GCP
্ʹ Docker ίϯςφΛల։Ͱ͖ΔαʔϏε • Kubernetes ( http://kubernetes.io ) Ͱཧ͞ΕΔ • k8s OSS ͳͷͰͬͯΔͳΒ͙͢ҠߦͰ͖Δ • ECS AWS ্ʹ Docker ίϯςφΛల։Ͱ͖ΔαʔϏε • json ͰઃఆϑΝΠϧΛॻ͖ίϯςφΛஔ • ͜Ε͔ΒͷྖҬͳͷͰظ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 35
ྉۚʹ͍ͭͯ • αʔϏεܖ௨৴ྉ͍ํ࣍ୈ • ͲΕ͘Β͍ͷظؒ͏͔ • Ͳͷ͘Β͍ͷ௨৴ྉ͕ൃੜ͢Δ͔ • ڝͬͯΔͷͰܭࢉ͢Δͱྑ͍͔ •
ͲͪΒ͕ѹతʹߴ͍/͍҆ͱ͍͏͜ͱແͦ͞͏ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 36
ͲΜͳਓʹ͍ͯΔ͔(GCE/AWS/...) Google Cloud Platform & Amazon Web Service (2015/04/17) -
Yoshikawa Ryota ( @rrreeeyyy ) 37
GCP ͕͍ͯͦ͏ (ྫ) • ৽͍͠ͷ͕͖ͳਓ • όʔεττϥϑΟοΫ͕ൃੜ͢ΔαʔϏε • Πϯελϯεͷىಈ/ෳ͕සൟʹൃੜ͢ΔαʔϏε •
ඞཁͳཁ݅ʹԠͯࣗ͡ͰOSS/֎෦αʔϏεΛ͑Δਓ • ྫ͑શจݕࡧαʔϏεͱ͔ GCP ʹࠓແ͍ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 38
AWS ͕͍ͯͦ͏ (ྫ) • ౦ژ͔ΒͷϨΠςϯγ͕ؾʹͳΔਓ (GCP ͷ࠷دΓ asia) • ͳΔ͘
1 ͭͷαʔϏεͰ৭ʑͳཁ݅Λୡ͍ͨ͠ਓ • αϙʔτपล/աڈͷݟɾπʔϧΛ͍͍ͨਓ • EC2/ELB/RDS ͷߏҊͷΑ͏ͳݟࢁ͋Δ • MySQL 5.6 Ҏ্ͦΕҎ֎ͷ DB PaaS Λ͍͍ͨਓ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 39
એ • ݁ہͲͬͪΛ͍͍͔͔ͬͯΒͳ͔ͬͨͱ͍͏ํ • GCP ͬͯΈ͍͚ͨͲΠϯϑϥͷઃఆͳͲ͍ͤͨͱ͍͏ํ • => ฐࣾ·Ͱ͝༻໋͍ͩ͘͞ʂ •
৭ʑͳΫϥυΛ৮ͬͯΈ͍ͨํ • ৮্ͬͨͰ͓٬༷ͷαʔϏεʹର͠దʹఏҊͯ͠Έ͍ͨํ • => ٻਓதͰ͢ͷͰԠืԼ͍͞ʂ Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 40
એ 2 • ձࣾͷϒϩάʹ GCP ͷ͜ͱॻ͍ͯ·͢ • http://heartbeats.jp/hbblog/gcp/ • CTO
ͷഅ (@netmarkjp) ͕ gihyo.jp Ͱ GCP ͷ࿈ࡌதͰ͢ • http://gihyo.jp/admin/serial/01/google-cloud-platform Google Cloud Platform & Amazon Web Service (2015/04/17) - Yoshikawa Ryota ( @rrreeeyyy ) 41