stackabletech / stackabletech/operator-rs

Add struct to allow universal method of setting jvm parameters

Abierto
#489 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Rust
Estrellas
167
Forks
19
Merge medio
1 d 6 h
PR fusionados (30 d)
9

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

El issue no nombra ningún archivo, prueba ni punto de entrada. Empieza localizando los tipos de configuración públicos del framework del operador y, después, compara las opciones HashMap, Vec y estructura personalizada con los requisitos de combinación indicados. Se considera terminado cuando se publique una estructura reutilizable de parámetros de JVM con una representación y un comportamiento de combinación acordados.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
kubernetes, rust
Área
backend-api-design, infrastructure
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.