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
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
130
Better Code Design in PHP
afilina
PRO
0
130
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
flutterkaigi_2024.pdf
kyoheig3
0
140
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
Amazon Qを使ってIaCを触ろう!
maruto
0
410
CSC509 Lecture 11
javiergs
PRO
0
180
Macとオーディオ再生 2024/11/02
yusukeito
0
370
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2k
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
300
Realtime API 入門
riofujimon
0
150
RubyLSPのマルチバイト文字対応
notfounds
0
120
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
GitHub's CSS Performance
jonrohan
1030
460k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Visualization
eitanlees
145
15k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Fireside Chat
paigeccino
34
3k
Agile that works and the tools we love
rasmusluckow
327
21k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
How to Ace a Technical Interview
jacobian
276
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
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ͳͲʹΑͬͯແ ͘ͳΔͷͰ
ͪΌͿ͕མͪண͍ۙ͘
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠