Hub: per-module storage limits for module task content

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

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

Descripción

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)
Lenguaje dominante
Kotlin
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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.

Más de ft-dev-org/cloudbridge-oss

Todos los issues de ft-dev-org/cloudbridge-oss

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.