Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否在客户端允许设置多个服务器地址并实现负载均衡 #1078

Open
CodingMoeButa opened this issue May 10, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@CodingMoeButa
Copy link

你的功能请求是否与某个问题有关?
在拥有多个节点的情况下,希望自动充分利用。还可用于网络爬虫的代理池。

描述你希望的解决方案
客户端配置允许填入数组,可以选择多种负载均衡模式,例如随机分配、延迟检查、分时分配等。

有没有其他替代方案
扩展ACL的功能。

@CodingMoeButa CodingMoeButa added the enhancement New feature or request label May 10, 2024
@kitty-eu-org
Copy link

急需这个功能

@JsonSong89
Copy link

我现在的做法是起N个本地docker转socks5,然后本地用clash做负载,确实有点累赘,如果能直接在hy2做就方便了.

@lbg2008
Copy link

lbg2008 commented Aug 27, 2024

客户端所在的机器上安装个nginx这类支持侦听udp端口且可以故障转移的软件就可以解决这个问题。

nginx为例,安装stream模块
sudo apt-get install libnginx-mod-stream

然后在
/etc/nginx/nginx.conf
最底下增添一段
stream {
upstream Hysteria {
server a.a.a.a:443;
server x.x.x.x:443 backup;
}
server {
listen 9199 udp;
proxy_pass Hysteria;
}
}

Hysteria服务器地址那填
127.0.0.1:9199
就可以了。

@kitty-eu-org
Copy link

如果是手机端呢。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants