[GH-ISSUE #857] 是否支持local_ip参数中多个IP地址,实现负载均衡 #678

Closed
opened 2026-05-05 12:26:18 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @buxiaomo on GitHub (Jul 23, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/857

场景:内网的Docker集群,部署一个LNMP应用,转发规则是集群中任意IP+10000端口访问

frpc.ini配置文件例如

[common]
server_addr = hk01.sourmilk.cc
server_port = 7000

[lnmp]
type = http
# 修改处
local_ip = 10.0.3.11,10.0.3.12,10.0.3.13
local_port = 10000
custom_domains = xxx.xxx.com

那么将ftp也放到集群中运行就不用担心其中节点宕机导致frp访问停止或目标地址宕机网站也可以访问

Originally created by @buxiaomo on GitHub (Jul 23, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/857 场景:内网的Docker集群,部署一个LNMP应用,转发规则是集群中任意IP+10000端口访问 frpc.ini配置文件例如 ``` [common] server_addr = hk01.sourmilk.cc server_port = 7000 [lnmp] type = http # 修改处 local_ip = 10.0.3.11,10.0.3.12,10.0.3.13 local_port = 10000 custom_domains = xxx.xxx.com ``` 那么将ftp也放到集群中运行就不用担心其中节点宕机导致frp访问停止或目标地址宕机网站也可以访问
Author
Owner

@yangyingchao1 commented on GitHub (Jul 26, 2018):

搞成负载均衡服务器啊,厉害了.

<!-- gh-comment-id:408047925 --> @yangyingchao1 commented on GitHub (Jul 26, 2018): 搞成负载均衡服务器啊,厉害了.
Author
Owner

@fatedier commented on GitHub (Jul 30, 2018):

https://github.com/fatedier/frp#load-balancing

<!-- gh-comment-id:408845539 --> @fatedier commented on GitHub (Jul 30, 2018): https://github.com/fatedier/frp#load-balancing
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#678
No description provided.