[Rollout] Add opt-in group-scoped session affinity - #2206
Conversation
ba73ccf to
fdbb2e6
Compare
|
Hi @yitianlian — I ran a preliminary 2×A100 A/B benchmark and a CPU-only paired follow-up analysis to understand the cache-locality versus load-balancing trade-off of this PR. The follow-up reconstructed 20 trace-matched A/B pairs across four cells:
The variance appears closely related to having only four group routing keys. The observed 2:2 / 3:1 / 4:0 placements were 8 / 10 / 2, nearly matching the theoretical 37.5% / 50% / 12.5% distribution. The paired throughput ratios were:
The association between group-placement imbalance and paired throughput effect was negative (Spearman ρ = -0.691; 200,000-permutation p = 0.00101). This is exploratory association rather than causal proof, especially because there were only two 4:0 observations. Before spending more GPU time, could you advise whether an opt-in framework-level group session scope fits Slime’s intended direction? If the scope is acceptable, I can run a confirmation benchmark on a clean pinned SM80 runtime with 16/32 concurrent groups, paired traces, and preregistered paired confidence intervals. If maintainers prefer callers to assign a shared |
Summary
Motivation
Behavior
Testing
CPU-only qualification was run against the latest upstream
mainafter cherry-picking this PR.Additional production-path coverage was added for:
generate_and_rm_group -> generate -> HTTP postX-SMG-Routing-KeyCommands:
Qualification result: 31 tests passed.
git diff --checkpassed. Testing was CPU-only; no GPU was used.Limitations
Related work
Related to #1469.
Builds on the consistent-hashing routing path introduced by #1588.