发布于: 2024-2-13最后更新: 2024-9-12字数 00 分钟

type
status
date
slug
summary
tags
category
icon
password
在我们使用Clash节点的时候,有时候觉得自己的节点网速跑不满,速度不够快。这时候,我们可以尝试着使用负载均衡,来让节点的网速拉满。在这期教程中,我来和大家一起来为Clash节点配置负载均衡。

准备材料

  • Clash 节点配置
  • 基于原版 Clash、Clash Premium 或 Clash Meta 的客户端

部署步骤

CFW Parsers

  1. 打开 Clash For Windows,转到“Settings”→“Profiles”。点击“Parsers”右边的“Edit”按钮
notion image
  1. 在内置编辑器中,粘贴以下内容并保存
YAML
12345678910111213141516171819
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+⚖️ 负载均衡-轮询
notion image
  1. 为了防止正常订阅被污染,请自行修改订阅地址,在其后面加上#slbable即可使用负载均衡

手动配置

  1. 使用VS Code或其他编辑器,打开Clash的节点配置文件。
  1. 将以下内容,添加到第一个策略组
YAML
12
- ⚖️ 负载均衡-轮询- ⚖️ 负载均衡-散列
  1. 在现有代理组的后面,添加代理策略组。
YAML
123456789101112131415161718
- 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
请将实际的P1、P2、P3替换成自己的节点名称
  1. 在基于Clash内核的客户端中,导入节点配置文件

参考资料


  • Giscus
  • Cusdis
  • Utterance
ChatGPT 免手机号 获取 sess apikey
ChatGPT 免手机号 获取 sess apikey
ChatGPT session Key 获取和使用完整图文教程
ChatGPT session Key 获取和使用完整图文教程

ChatGPT session Key 怎么获取和使用?完整图文教程


公告
type
status
date
slug
summary
tags
category
icon
password
🎉YOUNGQI的个人博客已经上线🎉
👏感谢您的拜访与交流学习👏
本站不收集任何信息,无安全隐患,请大家放心访问。