-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
希望加入负载均衡功能,以及提供外部接口 #605
Comments
|
负载均衡目前基本完成了对 tcp proxy 的支持,将在下个版本 v0.20.0 中发布。 # frpc.ini
[test1]
type = tcp
local_port = 8080
remote_port = 80
group = web
group_key = 123
[test2]
type = tcp
local_port = 8081
remote_port = 80
group = web
group_key = 123 对于同一个 group 中的 proxy,frps 接收到连接后会随机分发给其中一个存活的 proxy。 这里存活的定义是 frpc 启动正常。以后会考虑添加健康检查的配置,主动探测后端服务是否能够正常连接,不能连接就从负载均衡中去除。 |
@fatedier 每个用户连接时是不是固定一个服务器? |
一,haproxy就是专门做高可用的。二,Linux可以用supervisor,有简单的http管理功能 |
Support in v0.20. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一、希望FRP能加入负载均衡的功能、
例如可以在客户端配置文件内将多条相同类型的转发隧道归类到一个group里
当有请求的时候,均匀地将请求分配到每个隧道,就可以实现负载均衡的效果了。
(脑洞:frpc将系统负载情况定时上报给frps服务器,frps服务器根据每个frpc的负载情况选择性地转发,当然,这只是个设想,如果能实现那就太好了)
二、希望增加外部通讯接口
希望能够增加外部通讯接口,通过 Socket 或 http 控制 frps/frpc 的启动、关闭、重载配置等,这样在应用起来会方便很多。
感谢~
The text was updated successfully, but these errors were encountered: