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
380
0
Share
入門 KRR
Kubernetes Novice Tokyo #34 LT
Kazuki Obata
October 01, 2024
More Decks by Kazuki Obata
See All by Kazuki Obata
ウォンテッドリーのアラート設計と Datadog 移行での知見
donkomura
0
660
KubeCon + CloudNativeCon Japan 2025 Recap
donkomura
0
770
計装を見直してアプリケーションパフォーマンスを改善させた話
donkomura
2
470
自分だけの仮想クラスタを高速かつ効率的に作る kubefork
donkomura
0
310
散らばったトレースを繋げる技術
donkomura
1
850
ウォンテッドリーのインフラチームに加わってみて
donkomura
0
260
AWS CLI で気軽にコスト改善やってみた
donkomura
1
290
Other Decks in Technology
See All in Technology
AIAgentと取り組むKaggle
508shuto
2
470
React Compiler導入の効果と運用の工夫
kakehashi
PRO
3
300
ジュニアエンジニアはSREとどう向き合うべきか
nrinetcom
PRO
0
100
AWSアップデートから考える継続的な運用改善
toru_kubota
2
320
はじめてのAI-DLC
yoshidashingo
0
110
[4] Power BI Deep Dive [2026-05]
ohata_bi
0
110
Databricks 月刊サービスアップデートまとめ 2026年04月号
tyosi1212
0
140
【禁断】Obsidianの第二の脳に「知の巨人」と呼ばれた師匠の脳をロードしてみた
nagatsu
0
2k
20260516_SecJAWS_Days
takuyay0ne
2
540
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.7k
ECSのTerraformモジュールにコントリビュートした話
harukasakihara
0
270
AWS運用におけるAI Agent活用術 / JAWS-UG 神戸 #11 LT大会
genda
1
320
Featured
See All Featured
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
370
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
430
Being A Developer After 40
akosma
91
590k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
300
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
310
Git: the NoSQL Database
bkeepers
PRO
432
67k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
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等) の提案