基于CFW parsers功能的负载均衡策略组

2,837次阅读
没有评论

共计 962 个字符,预计需要花费 3 分钟才能阅读完成。

使用 CFW 的 parsers 功能自动插入负载均衡策略组实现多线程下载带宽叠加,完美配合 CDN 优选 IP

视频 教程

CFW 自动添加负载均衡

parsers:
  - reg: 'slbable$'
    yaml:
      append-proxy-groups:
        - name: ⚖️ 负载均衡 - 散列
          type: load-balance
          url: 'http://www.google.com/generate_204'
          interval: 300
          strategy: consistent-hashing
        - name: ⚖️ 负载均衡 - 轮询
          type: load-balance
          url: 'http://www.google.com/generate_204'
          interval: 300
          strategy: round-robin
      commands:
        - proxy-groups.⚖️ 负载均衡 - 散列.proxies=[]proxyNames
        - proxy-groups.0.proxies.0+⚖️ 负载均衡 - 散列
        - proxy-groups.⚖️ 负载均衡 - 轮询.proxies=[]proxyNames
        - proxy-groups.0.proxies.0+⚖️ 负载均衡 - 轮询

手动添加负载均衡

# 添加到第一个代理策略组
      - ⚖️ 负载均衡 - 轮询
      - ⚖️ 负载均衡 - 散列

#添加代理策略组
  - name: ⚖️ 负载均衡 - 散列
    type: load-balance
    url: http://www.google.com/generate_204
    interval: 300
    strategy: consistent-hashing
    proxies:
      - P1
      - P2
      - P3
  - name: ⚖️ 负载均衡 - 轮询
    type: load-balance
    url: http://www.google.com/generate_204
    interval: 300
    strategy: round-robin
    proxies:
      - P1
      - P2
      - P3

正文完
 
admin@f1tz.com
版权声明:本文于2022-12-09转载自不良林,共计962字。
转载提示:此文章非本站原创文章,若需转载请联系原作者获得转载授权。
评论(没有评论)
验证码