Idle shutdown: wake-on-request API to start idle-stopped containers
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/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ệ
- javascript, nginx
Hướng nghiên cứu
Start by tracing the existing last-access API and the nginx agent paths for HTTP upstream errors and TCP/UDP stream access; the issue names no files or tests. Check how container stop reasons and provider startLxc are handled, then map the wake endpoint into those flows. Done means idle-stopped containers wake once with rate limiting across HTTP and TCP/UDP, manually stopped containers stay stopped, and the documented retry behavior matches the startup status.
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. Depends on the idle sweep job (stop reason tracking).
Summary
An API the proxy calls to start a container that was stopped for inactivity when a request arrives for one of its services.
Details
- Endpoint e.g.
POST /api/v1/services/:id/wake(auth: localhost or admin API key, same aslast-access; remote site agents use the pinned agent key). - Only starts containers whose
stoppedReason = idle. Manually stopped containers are not woken. - Any request may trigger a wake, rate-limited per container, and idempotent: if a start is already in progress, return its status rather than starting again.
- Uses provider
startLxc; clears stop state on success. - Returns a status the proxy can act on (starting / running / not-wakeable).
- Hook into the nginx agent for HTTP (on upstream error) and TCP/UDP (stream access phase).
- At this stage it is acceptable for the first several requests to fail while the container boots. TCP/UDP clients simply have to retry; document this.
Acceptance criteria
- Request to an idle-stopped container's service starts it.
- Manually stopped containers stay stopped.
- Concurrent requests trigger a single start; wakes are rate-limited.
- Works for HTTP and TCP/UDP services.
- 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ó 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
-
enhancement idle-shutdown
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
mieweb/opensource-server#527 ·
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
-
[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
-
[workshop-sync] workshop/06-install-gh-aw.md: example version output is outdated (0.81.6 vs v1.2.2)Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
githubnext/gh-aw-workshop#6467 ·
Maintainer thường phản hồi trong vòng 1 ngày