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
what is Cloud Run?
Search
shogomuranushi
July 05, 2019
Programming
2
110
what is Cloud Run?
shogomuranushi
July 05, 2019
Tweet
Share
More Decks by shogomuranushi
See All by shogomuranushi
ノーコード x ChatBotで遊んでたら ReActを実装しそうだった話
shogomuranushi
0
1.2k
ChatGPT関連情報の追い方、個人・業務での使い方、サービスへの組み込み方、 ABEJAでの取り組み4例、ここ2週間のトピックなど行けるところまで
shogomuranushi
5
1.9k
FPが教える iDeCo のすごさ
shogomuranushi
0
130
AWS Control Tower導入してハッピーになりました
shogomuranushi
0
230
EKS を使ってる人から見た App Runner
shogomuranushi
7
2.4k
Suggested Topicの質問に可能な限り答えてみた
shogomuranushi
0
1.1k
顧客のアプリケーションコードが動くマルチテナント環境における課題とEKSにたどり着くまで
shogomuranushi
0
1.6k
ちょいテク100本ノック。できるまで帰しません 。今から使えるちょいテク集
shogomuranushi
1
2.7k
after of Infrastructure-as-Code-is-very-tired
shogomuranushi
16
3.4k
Other Decks in Programming
See All in Programming
Contemporary Test Cases
maaretp
0
130
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
最新TCAキャッチアップ
0si43
0
140
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
Better Code Design in PHP
afilina
PRO
0
120
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
100
ヤプリ新卒SREの オンボーディング
masaki12
0
130
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Remix on Hono on Cloudflare Workers
yusukebe
1
280
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
8.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Teambox: Starting and Learning
jrom
133
8.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Designing for Performance
lara
604
68k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
How STYLIGHT went responsive
nonsquared
95
5.2k
What's new in Ruby 2.0
geeforr
343
31k
Documentation Writing (for coders)
carmenintech
65
4.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
The Pragmatic Product Professional
lauravandoore
31
6.3k
Transcript
Cloud RunͬͯͳΜͶΜ Cloud Native Kansai #4 Shogo Muranushi
Shogo Muranushi ABEJA, Inc. - ABEJA Platform Product Owner -
Lead Infrastructure Engineer
ࡢͷ͋Δ
αʔϏεͷಛੑʹ߹Θͤͯ։ൃ͍ͯͨ͠ • ʮͪΐͬͱͨ͠ॲཧ͚ͩͩ͠େͯ͠Քಇ͠ͳ͍͠FaaSͰΉ͔ʯ • ʮॲཧྔଟ͍͠αʔόϨεͩͱߴ͘ͳΔ͔ΒίϯςφͰ࡞Δ͔ʯ or
͕࣌ؒܦա • ʮϦΫΤετྔ͕૿͑ͯɺFaaSͰΜͩͱ͜Ζͷॲཧ͕૿Ճʂ՝ֹۚ ͕ΤϥΠ͜ͱʹʂʂ͜͜ͷॲཧLambda͔Βίϯςφʹม͑Α͏ʯ • ʮίϯςφͰ࡞͚ͬͨͲɺػೳ͕ॖୀ͖ͯͯ͋͠·ΓΘΕ͍ͯͳ͍ ͔Βৗ࣌ىಈࣙΊ͍ͨɻLambdaͰॻ͖͢ʁʯ
͔ͯ • ͳΜͰॻ͖͞ͳ͔͋ΜͶΜɻ࣌ؒମͳ͍Θ • ϫʔΫϩʔυʹ߹ΘͤͯόοΫΤϯυͷΠϯϑϥ͕উखʹΓସ Θͬͯ͘ΕͨΒ࠷ߴͳͷʹ • ԶαʔόϨεͱίϯςφͷྑ͍ͱ͜Ζ͚ͩͷԸܙΛड͚͍ͨ
ࡢՆʹKnative͕ੜͨ͠
Knativeͱ • Kubernetesͷ্ͰαʔόϨεϥΠΫͳڥΛ࡞ΕΔ • ϦΫΤετϕʔεͰίϯςφ͕ىಈ͢Δ Serving • ΠϕϯτۦಈͰॲཧ͢Δ Eventing •
ιʔείʔυ͔ΒίϯςφʹϏϧυ͢Δ Build
FaaSͱԿ͕ҧ͏ʁ • มΘΒͳ͍ͱ͜Ζ • ϦΫΤετ͕དྷͨΒ Compute ͕ىಈͯ͠ɺҰఆظؒϦΫΤετ͕ແ͍ͱ ఀࢭ͢Δ
FaaSͱԿ͕ҧ͏ʁ • ίϯςφͳͷͰ੍͕গͳ͍ • ݴޠɺϖΠϩʔυαΠζɺॲཧ࣌ؒɺϦιʔεɺin VPCͳͲ • KubernetesΤίγεςϜͷԸܙΛड͚֦͘͢ுੑ͕ߴ͍ • KubernetesͳͲͷΠϯϑϥཧෆཁͳͷͰָ
• EC2ͳͲෆཁͳͷͰɺϦιʔεͷແବ͕ͳ͍҆͘
Ͳ͕ͬͪྑ͍ͷʁʢྫʣ • ࠓޙͷ։ൃείʔϓͰ੍ͷதͰແ͍ͳΒ FaaS • ੍ͷதͰेॲཧͰ͖Δ • FaaSͷࢥʹϚον͢ΔਓࡐΛ֬อͰ͖Δ • ͱΓ͋͑ͣϓϩτλΠϓ͔ͩΒ
• KubernetesγϯυΠ • ࠓޙͷ։ൃείʔϓͰ੍͕ݫ͘͠ͳΓͦ͏ͳΒ Knative • ίϯςφͳͷͰ੍গͳ͍ • ίϯςφͳͷͰɺΞϓϦͷมߋͳ͘ޙͰԿ༷ʹͰߏΛม͑ΒΕΔ
·ͩΓͳ͍ • ʮKubernetesͷӡ༻ʹ׳Ε͖͔ͯͨΒྑ͍͚Ͳɺग़དྷΕΠϯϑϥ ͷ໘ݟͨ͘ͳ͍ΜͩΑͳʯ
ࠓͷय़ʹCloud Run͕ੜͨ͠
Do you know Cloud Run ? • Βͳ͍ • ͬͯΔ͚Ͳɺ৮ͬͨ͜ͱͳ͍
• ৮ͬͨ͜ͱ͋Δ • ͍ͬͯΔ
None
None
None
ͭ·ΓɺCloud Run ʹ Full Managed Knative • ΠϯϑϥͷཧෆཁͳίϯςφͷͨΊͷαʔόϨεج൫ • ՝ۚମܥFaaSͱಉ͡
• FaaSͱίϯςφͷ͍͍ͱ͜औΓ • ͨͩ͠ൃల్্ͷͨΊ·ͩػೳগͳ͍ ʴ =
Cloud Runͷಛ
Cloud Runͷಛ • Serverless Container • Request driven workload •
Scale to zero • Event driven workload • Scale to zero • Full Managed / Multi-zone • Container • Any Language • Any Library • Any Binary • Ecosystem of base images
None
Concurrency = 1 Concurrency = 80 ඞཁͳΠϯελϯε͕গͳ͍ ίʔϧυελʔτͷස͕͍
LambdaͳͲͷFaaSͷ߹ ฒྻ͚ͩ՝ۚ Cloud Runͷ߹ ฒྻ͚ͩ՝ۚ͞Εͳ͍
80ฒྻͷίϯςφ ϦΫΤετ ੨ϨΠςϯγ 0ͷঢ়ଶ͔Β 60ඵؒͰ15,000ΫϥΠΞϯτ 80ສҎ্ͷϦΫΤετΛୡ
Cloud Run͕ࠓͰ͖ͳ͍͜ͱ • Max: 1vCPU / 2GB RAM • GPUඇରԠ
• CloudSQLඇରԠʢComming Soonʣ • VPCඇରԠʢComming Soonʣ • άϩʔόϧϩʔυόϥϯαʔඇରԠ • KnativaͷyamlఆٛඇରԠʢ2019தରԠ༧ఆʣ • gRPCඇରԠ • άϩʔόϧαʔϏεͰͳ͍ɻϦʔδϣφϧαʔϏε • gVisorΛར༻͍ͯ͠ΔͨΊະ࣮ͷγεςϜίʔϧ͕͋Δ͔
ͪͳΈʹ
• AWS Lambda, GCP Cloud FunctionͳͲɺ࣮͕όϥόϥʹͳ͍ͬͯΔ ͨΊ։ൃऀͷख͕ؒ૿͍͑ͯΔ • ͦͷͨΊCNCFΛத৺ͱͯ͠CloudEventsͱ͍͏αʔόϨεͷEventॲཧ ͷΠϯλʔϑΣΠεΛඪ४ن֨Խ࢝͠Ίͨ
• CNCFͦΕҎ֎ίϯςφΛத৺ʹଟͷඪ४ԽΛਐΊ͍ͯΔɻ αʔόϨεͱίϯςφͷϫʔΫϩʔυͷڥͷKnativeͳͲʹΑͬͯແ ͘ͳΔͷͰ
ͪΌͿ͕མͪண͍ۙ͘
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠