Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
180
An Efficient Incident Response Training with AI / SRE NEXT 2024 Sponsor Session
rrreeeyyy
1
3.5k
カンファレンスから見る SRE トレンド 2024 / SRE Trends from Conferences in 2024 #SRE_Findy
rrreeeyyy
4
2.2k
信頼性の育て方 / mackerel-meetup-15
rrreeeyyy
9
2.4k
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.2k
Other Decks in Technology
See All in Technology
ONNX推論クレートの比較と実装奮闘記
emergent
0
290
WED Company Deck for Engineer
wed
2
3.7k
ミスが許されない領域にAIを溶け込ませる プロダクトマネジメントの裏側
t01062sy
7
6.7k
店舗向けSaaSにおける 顧客要望活用の実践アプローチ(20241205_pmconf)
yujirooo
0
2.4k
スパイクアクセス対策としての pitchfork 導入
riseshia
0
110
How is Cilium Tested?
yutarohayakawa
5
230
総会員数1,500万人のレストランWeb予約サービスにおけるRustの活用
kymmt90
3
2.8k
間違いだらけのポストモーテム - ホントに役立つレビューはこうだ!
jacopen
5
960
MediaPipe と ML Kit ってどう ちがうの? / What is the difference between MediaPipe and ML Kit?
yanzm
0
430
GAS × Discord bot × Gemini で作ったさいきょーの情報収集ツール
ysknsid25
1
650
Nihonbashi Test Talk #3_WebDriver BiDiと最新の実装状況 / WebDriver BiDi latest status
takeyaqa
1
130
Replit Agent
kawaguti
PRO
2
120
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.8k
Typedesign – Prime Four
hannesfritz
40
2.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
1
76
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Faster Mobile Websites
deanohume
305
30k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
How STYLIGHT went responsive
nonsquared
95
5.2k
Six Lessons from altMBA
skipperchong
27
3.5k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
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