stackabletech / stackabletech/operator-rs

Add struct to allow universal method of setting jvm parameters

Offen
#489 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Rust
Sterne
167
Forks
19
Ø Merge
1 T. 6 Std.
Gemergte PRs (30 T.)
9

Beschreibung

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:

  1. A HashMap<String, String>
  2. A Vec
  3. 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

In der Issue wird keine Datei, kein Test und kein Einstiegspunkt genannt. Beginne damit, die öffentlichen Konfigurationstypen des Operator-Frameworks zu finden, und vergleiche dann die Optionen HashMap, Vec und benutzerdefinierte Struktur mit den genannten Anforderungen an das Zusammenführen. Fertig ist die Aufgabe, wenn eine wiederverwendbare JVM-Parameterstruktur mit einer abgestimmten Repräsentation und einem abgestimmten Zusammenführungsverhalten veröffentlicht wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
kubernetes, rust
Bereich
backend-api-design, infrastructure
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.