Hub: per-module storage limits for module task content

Đang mở
#35 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Kotlin
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ft-dev-org/cloudbridge-oss

Tất cả issue của ft-dev-org/cloudbridge-oss

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.