$30 off During Our Annual Pro Sale. View Details »
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
240
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
Recoilを剥がしている話
kirik
1
2.7k
[FlutterKaigi2024] Effective Form 〜Flutterによる複雑なフォーム開発の実践〜
chocoyama
1
4k
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
150
Cognitoが大型アップデート!Managed Loginとパスワードレスログインを実際に使ってみた@しむそくRadio Special Day1
tmhirai
3
260
競技プログラミングで 基礎体力を身につけよう / You can get basic skills through competitive programming
mdstoy
0
150
事業成長を爆速で進めてきたプロダクトエンジニアたちの成功談・失敗談
nealle
3
1.3k
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
130
かんたんデザイン編集やってみた~「完全に理解した」までの道のり~
morit4ryo
1
120
Discord Bot with AI -for English learners-
xin9le
1
110
デザインパターンで理解するLLMエージェントの作り方 / How to develop an LLM agent using agentic design patterns
rkaga
11
3.4k
Full stack testing :: basic to basic
up1
1
880
Jakarta EE meets AI
ivargrimstad
0
940
Featured
See All Featured
Music & Morning Musume
bryan
46
6.2k
What's in a price? How to price your products and services
michaelherold
243
12k
Site-Speed That Sticks
csswizardry
1
150
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
27
2.1k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Building Your Own Lightsaber
phodgson
103
6.1k
The Cost Of JavaScript in 2023
addyosmani
45
6.9k
Into the Great Unknown - MozCon
thekraken
33
1.5k
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ͳͲʹΑͬͯແ ͘ͳΔͷͰ
ͪΌͿ͕མͪண͍ۙ͘
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠