[GH-ISSUE #1214] FRPS如何高可用? #952

Closed
opened 2026-05-05 12:36:37 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @fcatat on GitHub (Apr 25, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1214

已将FRPC用于生产,需要做HA,好像传统的运维手段,都不太适用,烦请建议,谢谢
1.frpc 重连机制是怎样的?(断开后几秒重连,重试几次)
2.frpc的配置能否注册到多台frps

Originally created by @fcatat on GitHub (Apr 25, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1214 已将FRPC用于生产,需要做HA,好像传统的运维手段,都不太适用,烦请建议,谢谢 1.frpc 重连机制是怎样的?(断开后几秒重连,重试几次) 2.frpc的配置能否注册到多台frps
Author
Owner

@status301 commented on GitHub (Apr 28, 2019):

问题1:见文档 https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini

# decide if exit program when first login failed, otherwise continuous relogin to frps
# default is true
login_fail_exit = true

问题2 :1个frpc在运行中只能注册到1个frps中,要想注册到另一个frps,你可以再修改配置文件,起另一个frpc。

没看懂用于生产是什么意思,要做HA你可以将frpc运行在多个docker中。

<!-- gh-comment-id:487392217 --> @status301 commented on GitHub (Apr 28, 2019): 问题1:见文档 https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini ``` # decide if exit program when first login failed, otherwise continuous relogin to frps # default is true login_fail_exit = true ``` 问题2 :1个frpc在运行中只能注册到1个frps中,要想注册到另一个frps,你可以再修改配置文件,起另一个frpc。 没看懂用于生产是什么意思,要做HA你可以将frpc运行在多个docker中。
Author
Owner

@bood commented on GitHub (Apr 29, 2019):

@status301 HA的意思是高可用,即多个节点形成某种frps集群(至少两个frps服务器),单个frps断线不影响整个系统运行

<!-- gh-comment-id:487454251 --> @bood commented on GitHub (Apr 29, 2019): @status301 HA的意思是高可用,即多个节点形成某种frps集群(至少两个frps服务器),单个frps断线不影响整个系统运行
Author
Owner

@victor23d commented on GitHub (Aug 21, 2019):

FRP-Docker-K8S
https://github.com/victor23d/frp-docker-k8s
把FRP运行在 Kubernetes 集群上,外面加一层LoadBalancer即可,HA高可用应该不是问题。

<!-- gh-comment-id:523519658 --> @victor23d commented on GitHub (Aug 21, 2019): FRP-Docker-K8S https://github.com/victor23d/frp-docker-k8s 把FRP运行在 Kubernetes 集群上,外面加一层LoadBalancer即可,HA高可用应该不是问题。
Author
Owner

@hulucc commented on GitHub (Sep 4, 2020):

FRP-Docker-K8S
https://github.com/victor23d/frp-docker-k8s
把FRP运行在 Kubernetes 集群上,外面加一层LoadBalancer即可,HA高可用应该不是问题。

真的吗?假如链路是 frpc -- loadbalancer -- frps1/frps2 -- loadbalancer -- user
frpc 实际连接的是frps1,user 实际连接的是 frps2,能通?

<!-- gh-comment-id:687085284 --> @hulucc commented on GitHub (Sep 4, 2020): > FRP-Docker-K8S > https://github.com/victor23d/frp-docker-k8s > 把FRP运行在 Kubernetes 集群上,外面加一层LoadBalancer即可,HA高可用应该不是问题。 真的吗?假如链路是 frpc -- loadbalancer -- frps1/frps2 -- loadbalancer -- user frpc 实际连接的是frps1,user 实际连接的是 frps2,能通?
Author
Owner

@edenlong2006 commented on GitHub (Oct 28, 2022):

loadbalancer 采用主备模式即可。至于扩展性则需要让客户端按region 划分,每个region使用一个独立域名,每个域名对应一组loadbalancer 。

<!-- gh-comment-id:1294359099 --> @edenlong2006 commented on GitHub (Oct 28, 2022): loadbalancer 采用主备模式即可。至于扩展性则需要让客户端按region 划分,每个region使用一个独立域名,每个域名对应一组loadbalancer 。
Author
Owner

@BoomChao commented on GitHub (Mar 4, 2024):

能详细说说么

<!-- gh-comment-id:1976377904 --> @BoomChao commented on GitHub (Mar 4, 2024): 能详细说说么
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#952
No description provided.