mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2606] [Feature Request] frp是否可以考虑支持负载均衡或者Failover模式? #2079
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#2079
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 @aa51513 on GitHub (Oct 7, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2606
Describe the feature request
考虑以下场景:
frps-A
frpc-B
frpc-C
如果B与C配置完全一样:
[mqtt]
type = tcp
local_ip = 127.0.0.1
local_port = 1883
remote_port = 1883
现在的版本一定会报错,提示mqtt已存在
期望实现的效果:
·-节点B与节点C,可以同时共存,当用户访问frps的1883时,按照轮询等负载均衡方式,分配给B或者C处理
·-如果上述实现困难,实现Failover模式也是很不错的:假设B先上线,那就B先工作,C处于待机模式;一旦B下线,C马上自动顶上来
Describe alternatives you've considered
增加一个字段,默认是独占,可以设置成共存
共存模式下,再增加一个字段,标识共存模式:轮询,Failover,IP粘连等
Affected area
@aa51513 commented on GitHub (Oct 8, 2021):
才发现,已经有这个功能了