Load-balance
proxy-groups:- name: "load-balance" type: load-balance proxies: - ss1 - ss2 - vmess1 url: 'https://www.gstatic.com/generate_204' interval: 300 #lazy: true #strategy: consistent-hashing # or round-robin # hash-key: in-userCommon Fields
Section titled “Common Fields”Refer to Common Fields.
strategy
Section titled “strategy”Load Balancing Strategies
-
round-robinwill distribute all requests among different proxy nodes within the strategy group. -
consistent-hashingwill assign requests with the sametarget addressto the same proxy node within the strategy group. -
sticky-sessions: requests with the samesource addressandtarget addresswill be directed to the same proxy node within the strategy group, with a cache expiration of 10 minutes.
hash-key
Section titled “hash-key”Selects what a hashing strategy derives its key from. Only takes effect when strategy is consistent-hashing or sticky-sessions
in-userpins on the authenticated inbound user name (the same fieldIN-USERrules match on). It does not vary with the target address, so a single task spanning multiple domains will not switch nodes or change egress IP halfway through; unauthenticated requests fall back to the strategy’s own key- When unset, behavior is exactly the same as before