Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

vmm: boot and periodic log rotation copy files on async workers

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

Maintainer thường phản hồi trong vòng 1 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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
infrastructure

Hướng nghiên cứu

Locate App::rotate_oversized_logs and the VM startup rotation path, then trace their interaction with the Tokio maintenance task, fs::copy, and VM lifecycle operations. Keep copytruncate, retention cleanup, and serialized rotation behavior while moving both paths to blocking workers; add regression tests as requested and verify cancellation does not release protection prematurely.

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

Mô tả

Problem

App::rotate_oversized_logs calls synchronous copytruncate (fs::copy, truncation, retention cleanup) directly from the Tokio maintenance task. The VM startup path also rotates logs synchronously. Large logs, many VMs, or slow storage can occupy async workers and delay unrelated control-plane work.

The default periodic threshold is 4 MB with a 5-second scan interval; files can grow beyond the threshold between scans. Actual latency depends on storage and workload and has not been benchmarked.

Fix

Offload both rotation paths to blocking workers. Keep rotations serialized with each other and VM lifecycle operations, retaining that protection if a caller is cancelled. Preserve copytruncate and retention behavior and add regression tests.

#1263 changes supervisor log flushing; its VMM change is only a comment and does not offload rotation.

Ngôn ngữ chính
Rust
Star
551
Fork
97
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
182

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 Dstack-TEE/dstack

Tất cả issue của Dstack-TEE/dstack

Issue tương tự

Thêm issue về Rust

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.