mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3631] [Feature Request] Ability to configure failover #2896
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#2896
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 @vithurshanselvarajah on GitHub (Sep 25, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3631
Describe the feature request
Some of my servers have multiple uplinks so have multiple potential routes to take in the event of a failure.
Is there a way we can enable a fail over option? so config similar to below.
Node 1
[common]
server_port = 7003
token = sanitized
log_file = /root/frpc/frpc.log
log_max_days = 3
server_addr = demo.url.sanitized
[sanitized-80]
type = http
server_order = 1
local_ip = 127.0.0.1
local_port = 80
use_encryption = false
use_compression = true
custom_domains = demo.url.sanitized
[sanitized-443]
type = https
server_order = 1
local_ip = 127.0.0.1
local_port = 443
use_encryption = false
use_compression = true
custom_domains = demo.url.sanitized
Node 2
[common]
server_port = 7003
token = sanitized
log_file = /root/frpc/frpc.log
log_max_days = 3
server_addr = demo.url.sanitized
[sanitized-80]
type = http
server_order = 2
local_ip = 127.0.0.1
local_port = 80
use_encryption = false
use_compression = true
custom_domains = demo.url.sanitized
[sanitized-443]
type = https
server_order = 2
local_ip = 127.0.0.1
local_port = 443
use_encryption = false
use_compression = true
custom_domains = demo.url.sanitized
so the lower number for server_order is always used first. If a connection cannot be achieved it then fails over to the next one. This would give excellent DR capabilities to this amazing utility.
Describe alternatives you've considered
Configuring a load balancer in front of the server frp so it can decide which route to take using roundrobin algo. But this would mean setting up two independent frp environments which is a lot of work in terms of management and increases odds of failure / troubleshooting issues.
Affected area
@fatedier commented on GitHub (Sep 26, 2023):
https://github.com/fatedier/frp#load-balancing
Does this feature help? Combine with the health check function.
@vithurshanselvarajah commented on GitHub (Sep 26, 2023):
@fatedier i previously saw this but was unsure if this works when there is https enabled?
@fatedier commented on GitHub (Sep 26, 2023):
Only for
tcp, http, tcpmux,httpsis not support.This is not within the short-term plan, but it will be considered for support later.
@github-actions[bot] commented on GitHub (Oct 27, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.