stackabletech / stackabletech/operator-rs
Add struct to allow universal method of setting jvm parameters
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 167
- フォーク
- 19
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 9
説明
A customer wanted to override the jvm heap settings for the Druid operator today and was unable to do this.
In this specific instance it was resolved by the addition of resource configs to the Druid operator, which barely missed the last release window and hence is only available in the nightly version at the moment.
In the future it may become necessary though to allow users to override jvm parameter in some operators and ideally we'll want to do this in a universal way.
We should publish a struct in the operator framework that can be used by operators to allow setting these settings.
We have considered multiple versions of this:
- A HashMap<String, String>
- A Vec
- A custom struct with both a HashMap and a List to accomodate both
All of these have drawbacks and benefits, especiallly when considering how to merge these.
At the moment we tend towards option 2 as this is the most simple one.
The downside is, that is doesn't allow merging with higher level structs to for example override the value of -Xmaxmx=100 with -Xmaxmx=200 for a rolegroup, as this is only a string to us and we won't understand that it refers to the same setting.
We do think that this is an acceptable compromise, since hopefully the need to override values here should not be too frequent.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue では、ファイル、テスト、エントリポイントのいずれも指定されていません。まず operator framework の公開設定型を見つけ、次に HashMap、Vec、カスタム構造体の各オプションを、示されているマージ要件と比較してください。合意された表現とマージ動作を持つ再利用可能な JVM パラメータ構造体を公開できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- kubernetes, rust
- 領域
- backend-api-design, infrastructure
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100