I have two ec2 instances behind an application load balancer, I'm trying to update application on host by host (Rolling update). To do that i follow those steps : 1. stop nginx sevice 2. update application 3. start nginx service by stopping nginx service LB mark host as unhealthy and route traffic to the other host. and do the same thing on the second host.
the problem is that after starting nginx service and LB mark host as a healthy it don't route traffic to this host only after some times (4 min on average). like that i have a critical downtime.
LB Settings :
Is there a way to let LB route traffic to host once it become healthy?