AWS network load balancer configuration for Tomcat hosts automatic failover

53 views Asked by At

I have a network load balancer setup with a TCP listener on port 443, and in my target group I have two UI EC2 instances, both running tomcat. I would like for the users to be directed to second UI node if the Tomcat service on the first UI node is down. Both registered targets (First and second UI nodes) are healthy and the NLB is active. To test, I put the NLB DNS name into my browser, it redirects to the first UI node. I stop Tomcat on that node and refresh my browser, but the connection does not get redirected to the second UI node. Could you please let me know what I am doing wrong? Here are all the config values, which ones do you recommend me to change and to what value?

Protocol: TCP 
Port: traffic 
port Healthy 
Threshold: 2 
Unhealthy Threshold: 2 
Timeout: 10 Interval: 30

Thank you

0

There are 0 answers