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

Aperta
#752 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, python, rust
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
37
Fork
8
Merge medio
14h 16m
PR unite (30g)
244

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hardbyte/awa

Tutte le issue di hardbyte/awa

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.