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
入門 KRR
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kazuki Obata
October 01, 2024
Technology
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
入門 KRR
Kubernetes Novice Tokyo #34 LT
Kazuki Obata
October 01, 2024
More Decks by Kazuki Obata
See All by Kazuki Obata
ウォンテッドリーのアラート設計と Datadog 移行での知見
donkomura
0
720
KubeCon + CloudNativeCon Japan 2025 Recap
donkomura
0
900
計装を見直してアプリケーションパフォーマンスを改善させた話
donkomura
2
500
自分だけの仮想クラスタを高速かつ効率的に作る kubefork
donkomura
0
330
散らばったトレースを繋げる技術
donkomura
1
880
ウォンテッドリーのインフラチームに加わってみて
donkomura
0
290
AWS CLI で気軽にコスト改善やってみた
donkomura
1
310
Other Decks in Technology
See All in Technology
最高のシステムプロンプトを作るためにフィードバック機能を導入した話
alchemy1115
1
250
ここは地獄!つらい朝会を体験することで、チームとしてのより良い振る舞いに気づくワークショップ / The stand-up meeting from hell in the game industry
scrummasudar
0
480
データ活用研修 データマネジメント【MIXI 26新卒技術研修】
mixi_engineers
PRO
4
840
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
6
3.8k
Pavlokで始める電撃駆動開発
sgrsn
0
140
なぜ、あなたのAPIは使われないのか? AX時代の設計原則、ガードレール、運用体制
yokawasa
1
830
現場で使える AWS DevOps Agent 活用ノウハウ - Release Management 機能の検証結果を添えて / AWS DevOps Agent Release Management and Know-How
kinunori
5
820
検索技術知識0のエンジニアが広告検索システムを内製化して運用するまで
lycorptech_jp
PRO
0
180
ガバメントクラウドでのランサムウェア対策
techniczna
1
410
システム監視入門
grimoh
5
780
それでも、技術なブログを書く理由 #kichijojipm / Why I Still Write Tech Blogs Even Now
shinkufencer
0
1.4k
NetBoxを利用した作業効率化の試み_NetDevNight4
tnoha
0
420
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
400
First, design no harm
axbom
PRO
2
1.2k
GitHub's CSS Performance
jonrohan
1033
470k
Music & Morning Musume
bryan
47
7.3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Mind Mapping
helmedeiros
PRO
1
290
Scaling GitHub
holman
464
140k
Design in an AI World
tapps
1
270
Amusing Abliteration
ianozsvald
1
240
Building Adaptive Systems
keathley
44
3.1k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
360
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
350
Transcript
©2024 Wantedly, Inc. 入門 KRR Kubernetes Novice Tokyo #34 Oct.1
2024 - Kazuki Obata
©2024 Wantedly, Inc. 巨畠 和樹 (Obata Kazuki) @donkomura_ Wantedly, Inc.
(2024/09~) インフラエンジニア #k8s #分散システム #storage #ボルダリング🧗
© 2024 Wantedly, Inc. 今日話すこと・話さないこと • 話すこと ◦ KRRとは ◦
KRRの基本的な使い方と仕組み • 話さないこと ◦ Robusta ◦ Prometheus ◦ 類似するソフトウェアとの比較
©2024 Wantedly, Inc. Robusta KRR (Kubernetes Resource Recommendations)
©2024 Wantedly, Inc. KRR • Robusta という SaaS 機能の一部で OSS
• 機能 ◦ ✅リソースの推奨値を提案 (CPU/Memory) ← 本発表の内容 ◦ ✅毎週のレポートを Slack で通知 ◦ ✅Robusta の Web UI と連携 ◦ ✅推奨値を算出するアルゴリズムをカスタマイズ可能 ◦ 🛠CPU/Memory 以外のリソースへの対応 (e.g. GPU) Pod の CPU/Memory 等のリソースの推奨値を提案する CLI ツール
©2024 Wantedly, Inc. 使い方 インストール • brew install or python
script をダウンロード 基本的な使い方 • krr simple -p <prometheus url>
©2024 Wantedly, Inc. 使い方krr simple -p <prometheus url>
©2024 Wantedly, Inc. 推奨値の内容CPU(Memory も表示される内容は同様) 推奨値と現状の差分Requests (最低保証量) の推奨値 Limits (最大量)
の推奨値
©2024 Wantedly, Inc. 仕組みアーキテクチャとデフォルトの算出アルゴリズム 推奨値の算出方法 Simple の場合 • CPU ◦
Request: 過去1週間の95パー センタイルの値 ◦ Limit: 無し(残りはバースト利 用可能) • Memory ◦ 最大値に15%のバッファを追加 した値
©2024 Wantedly, Inc. まとめ • KRR は CPU/Memory の Request/Limit
の推奨値を 算出してくれる CLI ツール • 気軽に使える ◦ 😊 新たに k8s resource などをデプロイする必要無し! ◦ 😊 データ収集の時間を待たなくてよい ▪ 今ある Prometheus のメトリクスを活用できる ◦ 😞 推奨値が見れるだけで自動的に設定・スケールさせることはできない ◦ 😞 シンプルな方法なので複雑な推奨値の計算には向いていない ▪ e.g. 機械学習による推奨値の計算、ノードの種別 (RI等) の提案