Feature Request: Automatic Worker Process Recycling
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
- 25/100
Hướng nghiên cứu
No files, tests, or entry points are named. First clarify whether recycling should be driven by job count, lifetime, memory, or all three, then define the configuration and acceptance criteria for worker restarts and verify the behavior with targeted tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, Solid Queue worker processes run indefinitely, which can lead to memory bloat and potential resource leaks over time. This is especially problematic for long-running, high-volume systems.
Feature request:
Implement an automatic worker process recycling mechanism. This could:
- Restart processes after a configurable number of jobs processed
- Restart processes after a configurable time period
- Restart processes when memory usage exceeds a certain threshold
This feature would help maintain a clean state, prevent memory leaks, and ensure consistent performance without manual intervention.
Potential configuration options:
SolidQueue.configure do |config|
config.max_jobs_per_worker = 1000
config.max_worker_lifetime = 1.hour
config.max_worker_memory = 512.megabytes
end
- Ngôn ngữ chính
- Ruby
- Star
- 2.5k
- Fork
- 250
- Merge trung bình
- 8 giờ 31 phút
- Pull request đã merge (30 ngày)
- 5
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 rails/solid_queue
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
rails/solid_queue#806 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
rails/solid_queue#805 ·
-
limits_concurrency on_conflict: :discard looking only into running jobs and not blocked jobs Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
rails/solid_queue#804 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
rails/solid_queue#802 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
rails/solid_queue#797 ·
Tất cả issue của rails/solid_queue
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
simp/pupmod-simp-simp#395 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
simp/pupmod-simp-rsyslog#219 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
simp/pupmod-simp-pupmod#256 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
simp/pupmod-simp-sudo#150 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100