ARC2 Proxy
Scenarios & recipes Scenario

Recipe: multi-backend failover

Active/standby across two origins with health checks for automatic failover.

Two origins, one primary and one standby. Priority routing keeps all traffic on the primary while it is healthy and fails over automatically when health checks mark it down.

[[proxy_rules]]
domain = "api.example.com"
max_age_seconds = 0
rule_type = "Whitelist"
redirect_to_https = true

[proxy_rules.routing_rules]
routing_method = "Priority"
https_only = true
enable_health_checks = true
health_check_interval = 10
health_check_path = "/healthz"

[[proxy_rules.routing_rules.routing_locations]]
primary = true
priority = 1
forward_ipv4 = "10.0.0.5"
forward_port_https = 443

[[proxy_rules.routing_rules.routing_locations]]
priority = 2
forward_ipv4 = "10.0.1.5"
forward_port_https = 443
  • Priority routing → primary handles everything until it fails.
  • Health checks every 10s against /healthz pull a dead backend out and return it on recovery.
  • https_only keeps origin traffic encrypted end-to-end.
💡Spread load instead
Swap routing_method to Weighted to share traffic across both, or Performance to favour whichever responds fastest.