Hub: per-module storage limits for module task content

Aperta
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading hub/cloudbridge_hub/config.py, tasks.py, storage.py, and modules/library.py, especially CACHE_SHARE_OF_TASK_QUOTA; then inspect the synthetic module tests in hub/tests/demo_module.py. Trace how settings, eviction, and status, metrics, and doctor reporting use storage limits. Done means per-module limits and LRU eviction honor the free-disk floor, usage is reported in bytes without content, and the demo module tests cover the behavior.

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

Descrizione

backend difficulty: intermediate enhancement help wanted self-hosting

Context

The module design gives each module its own hub storage limit (CB_<MODULE>_CACHE_LIMIT_BYTES) under the shared
free-disk floor. Today the hub has limits for previews, originals, the backup queue and task content as a whole, but no
per-module limit, so one module could consume the shared task quota.

Acceptance criteria

  • Settings reads optional CB_<MODULE_ID>_CACHE_LIMIT_BYTES for every registered module id.
  • Task content and module caches are evicted per module (LRU) when its limit is reached; the free-disk floor still
    applies first.
  • status, metrics and doctor report per-module usage (bytes only, no content).
  • Tests with the synthetic demo module (hub/tests/demo_module.py).

Pointers

  • hub/cloudbridge_hub/config.py, tasks.py, storage.py, modules/library.py (CACHE_SHARE_OF_TASK_QUOTA)
Lingua principale
Kotlin
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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.

Altre issue di ft-dev-org/cloudbridge-oss

Tutte le issue di ft-dev-org/cloudbridge-oss

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.