转载 , CFW自动添加负载均衡

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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+⚖️ 负载均衡-轮询

2.手动添加负载均衡

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#添加到第一个代理策略组
- ⚖️ 负载均衡-轮询
- ⚖️ 负载均衡-散列

#添加代理策略组
- 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

转载原作者:点击直达

#slbable

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
- name: ♻️ 快跑选择
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300

commands:
- proxy-groups.⚖️ 负载均衡-散列.proxies=[]proxyNames
- proxy-groups.0.proxies.0+⚖️ 负载均衡-散列
- proxy-groups.⚖️ 负载均衡-轮询.proxies=[]proxyNames
- proxy-groups.0.proxies.0+⚖️ 负载均衡-轮询
- proxy-groups.♻️ 快跑选择.proxies=[]proxyNames
- proxy-groups.⚖️ 负载均衡-散列.proxies.⚖️ 负载均衡-散列 +♻️ 快跑选择