mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #605] 希望加入负载均衡功能,以及提供外部接口 #473
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#473
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kasuganosoras on GitHub (Jan 17, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/605
一、希望FRP能加入负载均衡的功能、
例如可以在客户端配置文件内将多条相同类型的转发隧道归类到一个group里
当有请求的时候,均匀地将请求分配到每个隧道,就可以实现负载均衡的效果了。
(脑洞:frpc将系统负载情况定时上报给frps服务器,frps服务器根据每个frpc的负载情况选择性地转发,当然,这只是个设想,如果能实现那就太好了)
二、希望增加外部通讯接口
希望能够增加外部通讯接口,通过 Socket 或 http 控制 frps/frpc 的启动、关闭、重载配置等,这样在应用起来会方便很多。
感谢~
@fatedier commented on GitHub (Jan 17, 2018):
@fatedier commented on GitHub (May 22, 2018):
负载均衡目前基本完成了对 tcp proxy 的支持,将在下个版本 v0.20.0 中发布。
对于同一个 group 中的 proxy,frps 接收到连接后会随机分发给其中一个存活的 proxy。
要求 group_key 相同,做权限验证,且 remote_port 相同。
这里存活的定义是 frpc 启动正常。以后会考虑添加健康检查的配置,主动探测后端服务是否能够正常连接,不能连接就从负载均衡中去除。
@xiaoyell commented on GitHub (May 27, 2018):
@fatedier 每个用户连接时是不是固定一个服务器?
@wxyzh commented on GitHub (May 27, 2018):
一,haproxy就是专门做高可用的。二,Linux可以用supervisor,有简单的http管理功能
@fatedier commented on GitHub (May 31, 2018):
Support in v0.20.