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.5k
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
An Efficient Incident Response Training with AI / SRE NEXT 2024 Sponsor Session
rrreeeyyy
1
2.6k
カンファレンスから見る SRE トレンド 2024 / SRE Trends from Conferences in 2024 #SRE_Findy
rrreeeyyy
4
2.1k
信頼性の育て方 / mackerel-meetup-15
rrreeeyyy
9
2.3k
SRE の歩き方・進め方 / sre-walk-through-procedure
rrreeeyyy
0
8.5k
「信頼性」を保ちつつ大規模サービスをリニューアルする / 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.2k
A survey of anomaly detection methodologies for web system
rrreeeyyy
5
1.2k
エンジニアリングをちゃんとやる あるいは 人類の平和 について / wsa02-rrreeeyyy
rrreeeyyy
13
3k
Other Decks in Technology
See All in Technology
四国クラウドお遍路 2024 in 高知 エンディング
yukataoka
0
160
自社サービスのための独自リリース版Redmine「RedMica」の取り組み
vividtone
0
900
四国のあのイベントの〇〇システムを45日間で構築した話 / cloudohenro2024_tachibana
biatunky
0
280
目標設定と習慣化で今よりも一歩生産性を上げる
sansantech
PRO
7
2.4k
Dify - LINE Bot連携 考え方と実用テクニック
uezo
5
1.2k
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
40k
RAGHack: Building RAG apps in Python
pamelafox
0
150
ビジネスとエンジニアリングを繋ぐプロダクトを中心とした組織づくりの実践
sansantech
PRO
1
130
The XZ Backdoor Story
fr0gger
0
2.6k
難しいから面白い!医薬品×在庫管理ドメインの複雑性と向き合い、プロダクトの成長を支えるための取り組み / Initiatives to Support Product Growth
kakehashi
2
150
すぐに始めるAWSコスト削減。短期でできる改善策と長期的な運用負荷軽減への取り組み方を解説
ncdc
1
530
強いチームを夢見て-PMからSREに転身して1年の振り返り / 20240906_bengo4_sre
bengo4com
2
820
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
518
39k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
Bash Introduction
62gerente
608
210k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
45
4.8k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
Web development in the modern age
philhawksworth
204
10k
[RailsConf 2023] Rails as a piece of cake
palkan
45
4.6k
It's Worth the Effort
3n
182
27k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
Designing for humans not robots
tammielis
248
25k
Clear Off the Table
cherdarchuk
90
320k
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