Skip to content

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

Common Fields

Refer to Common Fields.

Strategy

Load Balancing Strategies

  • round-robin will distribute all requests among different proxy nodes within the strategy group.

  • consistent-hashing will assign requests with the same target address to the same proxy node within the strategy group.

  • sticky-sessions: requests with the same source address and target address will be directed to the same proxy node within the strategy group, with a cache expiration of 10 minutes.

Note

When the target address is a domain, it uses top-level domain matching.