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
0
250
入門 KRR
Kubernetes Novice Tokyo #34 LT
Kazuki Obata
October 01, 2024
Tweet
Share
More Decks by Kazuki Obata
See All by Kazuki Obata
計装を見直してアプリケーションパフォーマンスを改善させた話
donkomura
2
280
自分だけの仮想クラスタを高速かつ効率的に作る kubefork
donkomura
0
170
散らばったトレースを繋げる技術
donkomura
1
650
ウォンテッドリーのインフラチームに加わってみて
donkomura
0
160
AWS CLI で気軽にコスト改善やってみた
donkomura
1
170
Other Decks in Technology
See All in Technology
Slackひと声でブログ校正!Claudeレビュー自動化編
yusukeshimizu
3
120
Streamline Cloud-Native App Development Using CDEs
saeedzf
0
390
Project Referencesを活用した実行環境ごとのtsconfig最適化
itatchi3
1
220
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
12k
フロントエンドがTypeScriptなら、バックエンドはPHPでもいいじゃない/php-is-not-bad
hanhan1978
8
12k
GitHub Coding Agent 概要
kkamegawa
1
400
大事なのは、AIの精度だけじゃない!〜1円のズレも許されない経理領域とAI〜
jun_nemoto
6
4.2k
Swiftは最高だよの話
yuukiw00w
0
160
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
1
7.1k
AIのための オンボーディングドキュメントを整備する - hirotea
hirotea
5
1.7k
Scale your Kotlin Multiplatform projects using dependency injection
vrallev
1
120
CloudTrailも、GuardDutyも、VPC Flow logsも… ログ多すぎ問題の整理術
nikuyoshi
4
520
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
430
65k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
The Cost Of JavaScript in 2023
addyosmani
49
7.9k
Bash Introduction
62gerente
613
210k
Embracing the Ebb and Flow
colly
85
4.7k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
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等) の提案