stackabletech / stackabletech/operator-rs

Add method to adaptively calculate JVM heap size instead of using a constant

Aperta
#475 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

type/feature-improvement
Lingua principale
Rust
Stelle
167
Fork
19
Merge medio
1g 6h
PR unite (30g)
9

Descrizione

Recently we added the possibility to add resource requests and limits to our operators.

For the Java based products we currently use a factor of 0.8 to calculate the amount of heap for the JVM depending on the memory limit.

In most cases this will lead to unused memory when using alot of memory. E.g. a pod gets 100GB memory, this will be 80GB for the JVM and we end up with almost 20GB unused but reserved memory.

We need a method in the framework that adaptively calculates the required heap memory in order to waste less memory and leaving enough memory for the OS to run when specifying lower amounts.

Acceptance

  • A method to calculate the JVM heap depending on the amount specified is implemented in the framework
    • This includes research about a safe minimal value (e.g. 500mb for the OS that must always be respected)
  • The operator-rs is properly released
  • The resources concepts docs are updated
  • All operators managing java products use this method instead of the constant 0.8 factor

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia individuando l'attuale calcolo dell'heap JVM con 0.8 del framework e la documentazione sui concetti delle risorse. Ricerca un valore minimo sicuro per la memoria dell'OS, quindi traccia tutti gli operatori che gestiscono prodotti Java per identificare gli utilizzi della costante. Il lavoro è completato quando il metodo adattivo viene utilizzato in modo coerente, operator-rs viene rilasciato e la documentazione sulle risorse viene aggiornata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
kubernetes, rust
Ambito
devops, documentation, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.