add dynamic weight update fuction to the superviser

This commit is contained in:
mantaohuang
2020-04-10 00:29:08 -04:00
parent 916646b1e2
commit 25c4218ff6
3 changed files with 101 additions and 30 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
proxy:{% for idx in running_idx %}
- url: "socks5://192.168.122.128:108{{idx}}"
weight: 5
proxy:{% for i in instances %}
- url: "socks5://192.168.122.128:{{1080+i["idx"]}}"
weight: {{i["weight"]}}
{% end %}
load-balance-mode: "cached-shuffle"
cache-clean-interval: 0
dynamic-weight-file: "{{dynamic_weight_fp}}"