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
Kazuki Obata
October 01, 2024
Technology
400
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
700
KubeCon + CloudNativeCon Japan 2025 Recap
donkomura
0
860
計装を見直してアプリケーションパフォーマンスを改善させた話
donkomura
2
500
自分だけの仮想クラスタを高速かつ効率的に作る kubefork
donkomura
0
320
散らばったトレースを繋げる技術
donkomura
1
880
ウォンテッドリーのインフラチームに加わってみて
donkomura
0
280
AWS CLI で気軽にコスト改善やってみた
donkomura
1
310
Other Decks in Technology
See All in Technology
金融の未来を考える / Thinking About the Future of Finance
ks91
PRO
0
180
はじめてのWDM
miyukichi_ospf
1
140
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
580
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
1
110
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
110k
Claude Code 珍プレー好プレー
shinyasaita
0
300
事業価値を⽣み出すSREへ SREが担うべき意思決定の5層
kenta_hi
2
3k
AWS Summit の片隅で、体育座りしながらコミュニティがにぎわう理由を考えた
k_adachi_01
2
370
キャリアの中で本を作る / Making a Book During Your Career
ak1210
0
130
依頼文化をやめる日 EM視点で語るPlatform EngineeringとInclusive SRE / Discussing Platform Engineering and Inclusive SRE from an EM's Perspective
shin1988
4
4.9k
AI Driven AI Governance
pict3
0
310
ローカルLLMとLINE Botの組み合わせ その3 / LINE DC Generative AI Meetup #8
you
PRO
0
130
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
0
9.5k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
180
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Statistics for Hackers
jakevdp
799
230k
A designer walks into a library…
pauljervisheath
211
24k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
630
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
500
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
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等) の提案