- 发布于
clash load balancing
AI 摘要
- 作者

- 姓名
- Corner430
- 社交账号
1. The computer uses Paesers to achieve load balancing
Replace the content in setting->Profiles->Parsers with the following:
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+⚖️ 负载均衡-轮询
reg: 'slbable$'Triggered when the suffix of the url isslbable- 负载均衡-轮询Representatives use different ip to access
- 负载均衡-散列Hash algorithm is used on behalf of the same second-level domain name, and high-quality nodes are selected for access. Avoid ip risk control problems.
interval: 300Represents a speed measurement and conversion every 300 seconds, and nodes that time out are not counted
2. On the computer side, the .yaml file is dragged in to take effect
- Export url through v2ray.
- Use subconverter and 简易版转换工具 to achieve subscription conversion.
- Open the converted link in the browser.
- Save as
.yamlfile - Fill in
file\\file path#slbableinsetting->urlto trigger subscription refresh, the essence is to refer to local files.
3. Rewrite the .yaml file, common to all platforms.
Open the .yaml file with an editor, vscode is the best.
Find proxy-groups->proxies (first), add two options
#Added to the first proxy policy group - ⚖️ 负载均衡-轮询 - ⚖️ 负载均衡-散列Find the last group and add the following content after it.
#Add proxy policy group - 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 - P3Among them, P1, P2, and P3 represent nodes.
Import the configuration file to the required device.
版权声明
- 作者: Corner430
- 标题: clash load balancing
- 链接: https://corner430-ai-blog.vercel.app/blog/clash-load-balancing
- 许可协议: CC BY-NC-SA 4.0
除非另有说明,本文内容采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处。