[GH-ISSUE #2606] [Feature Request] frp是否可以考虑支持负载均衡或者Failover模式? #2079

Closed
opened 2026-05-05 13:20:11 -06:00 by gitea-mirror · 1 comment
Owner

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:20:11 -06:00
  • closed this issue
  • added the
    proposal
    label
Author
Owner

@aa51513 commented on GitHub (Oct 8, 2021):

才发现,已经有这个功能了

<!-- gh-comment-id:938289349 --> @aa51513 commented on GitHub (Oct 8, 2021): 才发现,已经有这个功能了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2079
No description provided.