mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2796] server_addr 配置优化 #2234
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#2234
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 @zuozhehao on GitHub (Feb 11, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2796
Describe the feature request
server_addr 使用域名配置时,域名绑定的ip变化,frpc 连接的ip未跟随变化。
当使用域名时心跳检测前增加DNS解析,或配置支持多IP 如
server_addr = 192.168.1.100,192.168.1.200在多台服务器部署frps,域名做了灾备自动切换,提高可用性。
Describe alternatives you've considered
No response
Affected area
@172721404 commented on GitHub (Feb 11, 2022):
这是来自QQ邮箱的假期自动回复邮件。
您好,我已经收到你给我发的邮件,谢谢你...
@fatedier commented on GitHub (Feb 11, 2022):
关闭之前的服务端后,客户端会重连,就可以正常连接到新的地址。
@zuozhehao commented on GitHub (Feb 12, 2022):
A主B备,A挂了后DNS自动切到B,Frpc也会切换到B(DNS生效后),这个正常。
当A恢复正常后DNS切回A,Frpc还是保持使用B,这个时候域名连接就不正常了。
有没好的方法,Frps往后是否有可能支持类集群方案 @fatedier
@fatedier commented on GitHub (Feb 13, 2022):
目前没有平滑的迁移方式,只能通过断开和客户端的连接,让客户端重连到新的节点。
会有集群方案的支持计划,包括针对大规模客户端的优化,但应该不会开源,相对来说这些已经是一些企业级的需求,目前已经有一些公司有这方面的需求沟通和付费意愿,所以后续应该会对这样的场景提供针对性的解决方案。
@github-actions[bot] commented on GitHub (Mar 16, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.