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
240
EKS を使ってる人から見た App Runner
shogomuranushi
7
2.4k
Suggested Topicの質問に可能な限り答えてみた
shogomuranushi
0
1.1k
顧客のアプリケーションコードが動くマルチテナント環境における課題とEKSにたどり着くまで
shogomuranushi
0
1.6k
ちょいテク100本ノック。できるまで帰しません 。今から使えるちょいテク集
shogomuranushi
1
2.8k
after of Infrastructure-as-Code-is-very-tired
shogomuranushi
16
3.4k
Other Decks in Programming
See All in Programming
今年一番支援させていただいたのは認証系サービスでした
satoshi256kbyte
1
260
情報漏洩させないための設計
kubotak
2
250
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
140
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
500
Kaigi on Railsに初参加したら、その日にLT登壇が決定した件について
tama50505
0
100
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
200
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
선언형 UI에서의 상태관리
l2hyunwoo
0
170
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
450
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
7
1.3k
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Optimizing for Happiness
mojombo
376
70k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Into the Great Unknown - MozCon
thekraken
33
1.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Done Done
chrislema
181
16k
Become a Pro
speakerdeck
PRO
26
5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
RailsConf 2023
tenderlove
29
940
For a Future-Friendly Web
brad_frost
175
9.4k
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ͳͲʹΑͬͯແ ͘ͳΔͷͰ
ͪΌͿ͕མͪண͍ۙ͘
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠