miroir/crates
jedarden cfacb5160e Phase 1 (miroir-cdo): Core Routing implementation complete
Implements deterministic, coordination-free routing primitives per plan §2:
- Rendezvous hashing (HRW) with seed 0 to match Meilisearch Enterprise
- Topology management with node health state machine
- Result merger with global sort, facet aggregation, offset/limit
- Scatter orchestration primitives (stubbed execution)

Key properties:
- Determinism: all pods agree on assignments without gossip
- Minimal reshuffling: adding node moves ~1/(Ng+1) of that group's docs
- Group isolation: hashing scoped to intra-group node lists

All acceptance tests pass:
- Determinism across 1000 randomized runs
- Reshuffle bounds on add/remove (≤2×1/4×S edges differ)
- Uniform distribution (64 shards/3 nodes/RF=1 → 18-26 shards per node)
- Top-RF placement stability
- write_targets returns exactly RG×RF nodes
- query_group distributes evenly
- covering_set returns one node per shard with replica rotation
- Merger passes all merge/facet/limit tests

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:27:16 -04:00
..
miroir-core Phase 1 (miroir-cdo): Core Routing implementation complete 2026-05-09 15:27:16 -04:00
miroir-ctl Phase 0 (miroir-qon): Add serial_test annotation to fix test race condition 2026-05-09 02:19:32 -04:00
miroir-proxy Phase 1 (miroir-cdo): Core Routing implementation complete 2026-05-09 15:27:16 -04:00