stackabletech / stackabletech/operator-rs
Add struct to allow universal method of setting jvm parameters
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 167
- Fork
- 19
- Merge medio
- 1g 6h
- PR unite (30g)
- 9
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Nell’issue non sono indicati file, test o punti di ingresso. Inizia individuando i tipi di configurazione pubblici dell’operator framework, quindi confronta le opzioni HashMap, Vec e struttura personalizzata con i requisiti di merging indicati. Il lavoro è completato quando viene pubblicata una struttura riutilizzabile per i parametri JVM con una rappresentazione e un comportamento di merge concordati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- kubernetes, rust
- Ambito
- backend-api-design, infrastructure
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100