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
200
An Efficient Incident Response Training with AI / SRE NEXT 2024 Sponsor Session
rrreeeyyy
1
4.2k
カンファレンスから見る SRE トレンド 2024 / SRE Trends from Conferences in 2024 #SRE_Findy
rrreeeyyy
4
2.3k
信頼性の育て方 / 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
「海外登壇」という 選択肢を与えるために 〜Gophers EX
logica0419
0
500
TAMとre:Capセキュリティ編 〜拡張脅威検出デモを添えて〜
fujiihda
1
110
Data-centric AI入門第6章:Data-centric AIの実践例
x_ttyszk
1
370
PL900試験から学ぶ Power Platform 基礎知識講座
kumikeyy
0
110
君も受託系GISエンジニアにならないか
sudataka
2
370
君はPostScriptなウィンドウシステム 「NeWS」をご存知か?/sunnews
koyhoge
0
720
組織貢献をするフリーランスエンジニアという生き方
n_takehata
1
1k
Platform Engineeringは自由のめまい
nwiizo
4
1.9k
データの品質が低いと何が困るのか
kzykmyzw
6
1k
自動テストの世界に、この5年間で起きたこと
autifyhq
10
7.1k
WAF に頼りすぎない AWS WAF 運用術 meguro sec #1
izzii
0
460
関東Kaggler会LT: 人狼コンペとLLM量子化について
nejumi
3
460
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Designing for Performance
lara
604
68k
Optimizing for Happiness
mojombo
376
70k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
How to train your dragon (web standard)
notwaldorf
90
5.8k
Gamification - CAS2011
davidbonilla
80
5.1k
Building an army of robots
kneath
302
45k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Become a Pro
speakerdeck
PRO
26
5.1k
Building Applications with DynamoDB
mza
93
6.2k
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