Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WebAssembly_workloadをEKSで利用するには.pdf
Search
clouddev-code
September 28, 2024
1.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WebAssembly_workloadをEKSで利用するには.pdf
clouddev-code
September 28, 2024
Transcript
25 slides
2024.09.25 JAWS-UG 東京 #15 s.hiruta (@web_se) WebAssembly workloadをEKSでネイティブに動かす には
アジェンダ • WebAssemblyについて • CRI • EKS環境で動かすには • まとめ 2
Self introduction 【名前】 s.hiruta ( @web_se ) 【仕事】 コンテナ、マイクロサービス基盤構築 【興味分野】
Containers、WASM+LLM、 Github clouddev-code zenn clouddevcode 3
Previous LT Slide https://speakerdeck.com/cloudevcode 4
WebAssembly workloadをネイティブに動かしたい。 5
セッションの目的 概要 • Web Assemblyについて • EKSにwasm workloadを動かすには 6
WebAssemblyて? • ブラウザに読み込んで動作する • Google Meet、Google Map • ブラウザ外でも動かせる •
Wasm 0.2だとWasm Componentsもあり 7
WebAssemblyではEdgeでも動かせる • Fastly Compute • Cloudflare workers 8
axum framework 9 • Rustのweb application framework
axum+Rust 10 https://kluften.dev/blog/nebula_chapter1
demo
wasmtime • wasm はそのまま実行することはできない • Java Runtimeのようなものが必要 https://wasmtime.dev/?_fsi=Lcp1SSNJ&_fsi=Lcp1SSNJ
13 Benefit of WASM • Typescript、JavaScriptからwasmにビルドできる • ポータビリティ • 起動がはやい
14 WASMでできないこと • Socket • tokio • aws-sdk-bedrockruntimeもtokioのfull featureと依存するの で利用不可
tokioは、Rustプログラミング用の非同期ランタイムです。WebAssembly 用のtokio_wasiあるが、sync,macros,io-util,rt,timeのfeatureのみ利用 可
CRI https://kubernetes.io/blog/2017/11/containerd-container-runtime-options-kubernetes/
WebAssembly Runtime
Kubernetes • bottlerocket • AmzonLinux2023 • Fargate Profile 17
18
How to Run webassembly workload on EKS • containerd-slim-wasmedgeを入ったWorker Nodeを
作る必要あり 19
EKSクラスタ環境 • 20
finch • wasm OCI artifactのイメージをECRにプッシュ 21
Wasmedge workload • 22
まとめ • wasmがポータビリティがあり、Startupがはやいな ので今後期待できる • Socketなど使えない機能もある 23
索引 • How to Run WebAssembly on Amazon EKS https://aws.amazon.com/blogs/containers/16532-2/
• WASM Component https://zenn.dev/ciscorn/scraps/c0de8cd3804ebd • AXUMでWASM https://qiita.com/ringo-apo/items/b2ccf1668bc6f21e5f4a • Lightning Talk: The Future of Wasm at Fastly https://www.fastly.com/jp/video/lightning-talk-the-future-of-wasm-at-fastly/ 24
25
More Decks by clouddev-code
See All by clouddev-code
CNDW2026_lambdamicroVMs_CI__1_.pdf
cloudevcode
0
59
Agent_Core_Interpreter_その他のSandox環境について.pdf
cloudevcode
0
35
ECSでのinit_containerを利用したOpen_Telmetry自動計装.pdf
cloudevcode
1
220
microVMsのユースケースを考える.pdf
cloudevcode
0
72
cdk8s_Helm_どちらを選ぶべきか_rev.pdf
cloudevcode
0
410
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
960
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
77
ADK_for_Java.pdf
cloudevcode
1
120
initContainerをECSで実現したい.pdf
cloudevcode
0
81
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
Done Done
chrislema
187
17k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Docker and Python
trallard
47
4.3k
Building an army of robots
kneath
307
47k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
310
Documentation Writing (for coders)
carmenintech
77
5.6k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
390
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
960
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
320