Idle shutdown: add idleTime resource request (default 72h)
Maintainer thường phản hồi trong vòng 4 ngày
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
- 57/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, node.js
Hướng nghiên cứu
Start with create-a-container/models/resourcerequest.js, then trace the resource approval flow, applyResourceToExistingContainers, the /resource-requests/effective endpoint, and the frontend request form. Run the relevant tests and add coverage for the default of 72 and the inverted approval rules. Done means requests follow those rules, approval does not enqueue a reconfigure job, and the effective endpoint returns idleTime.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of the Idle Container Shutdown epic.
Summary
Add a new resource request type idleTime that controls how long a container may go without proxied access before it is stopped automatically.
Details
- Unit: hours (integer). Default 72.
0= never stop (exempt from idle shutdown).- Add to
VALID_RESOURCE_TYPES/RESOURCE_DEFAULTSincreate-a-container/models/resourcerequest.js. No migration needed (resourceTypeisSTRING(20)). - Approval is inverted vs. other types: values
1..72(shorter than default) auto-approve; values> 72and0(never) require admin approval. Admins always auto-approve. idleTimeis not a Proxmox resource:applyResourceToExistingContainersmust not enqueuereconfigure-container.jsfor it.- Relax the "requires a provisioned container" rule on admin approval for this type.
- Expose in
/resource-requests/effectiveand the frontend request form.
Acceptance criteria
- Users can request
idleTime; shorter values auto-approve, longer /0go pending. - Approving does not enqueue a reconfigure job.
- Effective resources endpoint returns
idleTime(default 72). - Tests cover approval direction and default.
- Ngôn ngữ chính
- JavaScript
- Star
- 10
- Fork
- 6
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mieweb/opensource-server
-
Render the docs site per installation from /etc/default config instead of at package build timeĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
mieweb/opensource-server#538 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement idle-shutdown
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
mieweb/opensource-server#531 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement idle-shutdown
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
mieweb/opensource-server#530 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement idle-shutdown
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
mieweb/opensource-server#529 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement idle-shutdown
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
mieweb/opensource-server#528 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của mieweb/opensource-server
Issue tương tự
-
Name the maintainers in CODEOWNERSCó thể đã có người làm @TorecLuik đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
jonathanong/no-mistakes#5489 ·
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày