We use a network load balancer, and we noticed that when one node goes down,it takes almost 2 minutes to switch traffic to the remaining healthy one and this is something we don’t want. Is there any way to make this transition immediate (like a hardware load balancer is doing for example)?
Thanks!
30s interval - The approximate amount of time between health checks of an individual target
# 10s Timeout - The amount of time, in seconds, during which no response means a failed health check.
# 2 Unhealthy threshold - The number of consecutive health check failures required before considering a target unhealthy.
# 2 Healthy threshold - The number of consecutive health checks successes required before considering an unhealthy target healthy.
Is the node going down because of an error or because of planned maintenance? If it’s planned, you can remove it first and wait for all the connections to drain before you start maintenance.
Any idea why you using n/w load balancer? Also when the unhealthy nodes goes down, are new instances coming up? How long does it take for new instances to startup?
Why don’t you try with two instances and see what’s happening and play around with settings.
We get a downtime of 3 seconds when switching load balancers. But we manage our own LBs, not using the provided service, because of exactly this problem with the quality.
Thank you all for the great insights, i managed to lower the numbers for network lb as much as possible (10+10x2 = we should be switching host in 40 seconds)
# 10s interval - The approximate amount of time between health checks of an individual target
# 10s Timeout - The amount of time, in seconds, during which no response means a failed health check.
# 2 Unhealthy threshold - The number of consecutive health check failures required before considering a target unhealthy.