InseeFrLab / InseeFrLab/onyxia-api
Disable catalog refresh timer by default
- Lingua principale
- Java
- Stelle
- 34
- Fork
- 34
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Currently Onyxia refresh the catalogs every 5 minutes (see https://github.com/InseeFrLab/onyxia-api?tab=readme-ov-file#catalogs-configuration- `catalogs.refresh.ms`).
There are some caveats associated with catalog refreshs :
* In case you have multiple API pods, having one refreshed and not the other means they may be desynched resulting in user facing bugs
* Refresh may fail due to a temporary failure in registry
* Refreshing the catalogs and fetching all packages every x minutes may cause some heavy load (see #358 for possible mitigation)
* Periodic refresh on catalogs you don't maintain yourself may result in app breaking unexpectedly
I suggest we disable the refresh by default (setting `0` to `catalogs.refresh.ms` by default) while still allowing admin to override it. I also suggest we document the caveats.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dall'impostazione `catalogs.refresh.ms` e dalla configurazione dei cataloghi documentata nel README di onyxia-api collegato. Modifica il valore predefinito in `0`, mantenendo la possibilità di una sovrascrittura da parte dell'amministratore, e documenta le avvertenze relative alla sincronizzazione, agli errori del registry, al caricamento e ai cataloghi esterni; il lavoro è completato quando la funzionalità è disabilitata per impostazione predefinita e le avvertenze sono documentate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api, backend, documentation
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100