@@ -699,10 +699,11 @@ NodePass provides three load balancing strategies controlled by the `lbs` parame
699699- ** Failover** : When a connection to an address fails, immediately tries the next address to ensure service availability
700700- ** Automatic Recovery** : Failed addresses are retried in subsequent rotation cycles and automatically resume receiving traffic after recovery
701701
702- ** Strategy 1 (Sticky-Failover):**
703- - ** Connection Stickiness** : Continues using the current target address as long as connections succeed
704- - ** Failover Only** : Switches to the next address only when connection failures occur
705- - ** Persistent Target** : Once switched to a new address, all subsequent connections use that address until it fails
702+ ** Strategy 1 (Optimal-Latency):**
703+ - ** Intelligent Routing** : Periodically probes targets and automatically selects the one with the lowest latency for connections.
704+ - ** Sticky Selection** : Once the optimal target is chosen, subsequent connections within the cycle preferentially use that target.
705+ - ** Automatic Filtering** : Unhealthy targets are automatically excluded from routing and re-evaluated only after recovery.
706+ - ** Failover** : If the optimal target fails, other targets are tried in order to ensure successful connections.
706707
707708** Strategy 2 (Primary-Backup):**
708709- ** Priority-Based** : Always attempts to connect to the first address (primary); only uses backups when primary fails
@@ -716,7 +717,7 @@ Example configurations:
716717# Round-robin (lbs=0, cycles through targets on each connection)
717718nodepass " server://0.0.0.0:10101/backend1:8080,backend2:8080,backend3:8080?lbs=0"
718719
719- # Sticky failover (lbs=1, stays on current target until failure )
720+ # Optimal-latency (lbs=1, automatically routes to fastest target )
720721nodepass " server://0.0.0.0:10101/backend1:8080,backend2:8080,backend3:8080?lbs=1"
721722
722723# Primary-backup (lbs=2, primary priority and scheduled fallback)
@@ -729,7 +730,7 @@ nodepass "server://0.0.0.0:10101/main.com:443,spare1.com:443,spare2.com:443?lbs=
729730
730731Choose the appropriate strategy based on your needs:
731732- ** Use lbs=0** for even load distribution across all backends
732- - ** Use lbs=1** for session persistence and reduced backend switching
733+ - ** Use lbs=1** for intelligent routing to the lowest latency target
733734- ** Use lbs=2** for primary-backup scenarios with automatic failback
734735
735736### Use Cases
0 commit comments