mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-14 12:48:28 +10:00
When a sticky session's credential utilization exceeds the least-used credential by a weight-adjusted threshold, force reassign all sessions on that credential and cancel in-flight requests scoped to the balancer. Threshold formula: effective = rebalance_threshold / planWeight, so a config value of 20 triggers at 2% delta for Max 20x (w=10), 4% for Max 5x (w=5), and 20% for Pro (w=1).