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
More Decks by clouddev-code
See All by clouddev-code
Agent_Core_Interpreter_その他のSandox環境について.pdf
cloudevcode
0
31
ECSでのinit_containerを利用したOpen_Telmetry自動計装.pdf
cloudevcode
0
210
microVMsのユースケースを考える.pdf
cloudevcode
0
68
cdk8s_Helm_どちらを選ぶべきか_rev.pdf
cloudevcode
0
340
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
950
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
75
ADK_for_Java.pdf
cloudevcode
1
120
initContainerをECSで実現したい.pdf
cloudevcode
0
76
VPC_Lattice検討したが_採用しなかった話.pptx.pptx.pdf
cloudevcode
0
44
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
59k
ラッコキーワード サービス紹介資料
rakko
5
5.6M
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Speed Design
sergeychernyshev
33
2.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
How to train your dragon (web standard)
notwaldorf
96
6.9k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
47k
4 Signs Your Business is Dying
shpigford
187
23k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
68k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Transcript
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