Deprecate queue_stripe_count in 0.7 in favour of enqueue shards and partitioned queues

Đang mở
#752 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ó
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ái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
postgresql, python, rust
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start by reading the Rust builder and Python kwargs for queue_stripe_count, the configuration docs, and the queue concepts page. Compare stripes with enqueue_shards at equal lane counts, including claim fan-out at high worker counts. Done means the benchmark answers whether stripes provide a distinct benefit and the deprecation and migration proposal can proceed on that evidence.

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

Mô tả

queue_stripe_count splits a logical queue into physical queues q#0 … q#N-1. It overlaps with enqueue_shards, which also adds lanes to spread enqueue and claim lock contention and keeps per-key FIFO through ordering_key, and with PartitionedQueue where separate policy domains are wanted.

The stripe knob is fleet-wide configuration that producers and workers must agree on, and #749 showed how easily the paths drift: the SQL compat insert path wrote the unstriped queue that striped workers never read, routing ignored ordering_key, single-job inserts all landed on stripe 0, and routing used DefaultHasher. #750 fixed these for 0.6.18 and main is getting the same fix.

Proposal for 0.7:

  • Mark queue_stripe_count deprecated in the Rust builder and Python kwargs, with a warning at client start when it is above 1.
  • Document the migration: drop to one stripe on producers first, keep workers striped until q#* drains (workers already read q after #750), then drop to one stripe on workers.
  • Point the configuration docs and the new queue concepts page at enqueue_shards and PartitionedQueue.
  • Keep the stripe read path (claiming and counting q#*) for at least one minor so leftover jobs drain.
  • Remove the knob in a later minor, tracked separately.

Open question: whether any workload gets something from stripes that shards do not give, for example claim fan-out across physical queues under very high worker counts. A benchmark of stripes against shards at equal lane counts would settle it before the deprecation lands.

Ngôn ngữ chính
Rust
Star
37
Fork
8
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
244

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 hardbyte/awa

Tất cả issue của hardbyte/awa

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.