BGTech blog.bgyani.co.in

Failover in Load Balancer

See how traffic moves from a failed primary server to a backup path or redistributes across healthy servers. Switch between Active / Passive and Active / Active to compare real failover behavior.

Mode: Active / Passive
Speed: Instant
Traffic: ON
Send Traffic
Primary Server
Auto Failure Detection

Client

Traffic source
Sending requests

Load Balancer

Decision Logic
Route all traffic to Primary
Failover Detection
Monitoring primary health

Server A

Primary
Healthy

Server B

Backup
Healthy
Healthy
Down
Transition
Traffic flow

Normal state

Traffic goes from Client to Load Balancer to the primary server. Backup remains idle until needed.

Failure event

When Server A fails, the load balancer stops using it and starts failover handling.

Recovery

After recovery, traffic returns to normal policy based on the selected mode.