Load Balancing (load-balance)
Spreads traffic across multiple nodes in the group to make full use of the combined bandwidth of several routes; unhealthy nodes are automatically skipped.
Example Config
config.yaml YAML
proxy-groups: - name: "load-balance" type: load-balance proxies: - ss1 - ss2 - vmess1 url: 'https://www.gstatic.com/generate_204' interval: 300 strategy: consistent-hashing
strategy
round-robinDistributes all requests to the group's nodes in a round-robin rotation.
consistent-hashingRequests to the same destination address are pinned to the same node in the group. When the destination is a domain, matching is done on the top-level domain — good for scenarios that need session persistence (e.g. some sites require you to stay logged in from the same IP).
sticky-sessionsRequests with the same source address + destination address are pinned to the same node, with the mapping cached for 10 minutes before expiring — a finer-grained binding than consistent-hashing.
See common fields for the rest.