0

Here my problem:

I have a Target group containing two EC2 instances. One Instance is healthy, the other is not. ( my health check configurations are especially designed to make one healthy and the other not).

An application Load Balancer will be configured to forward requests to the above mentioned TG.

As known, an ALB only forwards requests to healthy instances within a TG, but we want to see the Http_status code returned from unhealthy instances, so I am asking if there is a method to do that. ( wether by making the ALB forward the request to the unhealthy instance or by another mean ) Thank you

Nidorino94
  • 113
  • 2
  • 10
  • You want the request to be sent to both instances or only the unhealthy one? Why intentionally have it unhealthy if you still want requests to go there? – jordanm Mar 17 '21 at 15:11
  • It doesn't matter if the request is sent to both or not. Most importantly I want to see the response from the unhealthy instance ( Http Status code ). It was a requirement from a team member. He wants to see what an unhealthy instance gives as response. – Nidorino94 Mar 17 '21 at 15:33
  • 2
    Send the request directly to the instance instead of through the load balancer – jordanm Mar 17 '21 at 16:10
  • you can enable logs for load balancer to see which http response is taken from health check. – Oguzhan Aygun Mar 17 '21 at 22:17
  • do the ALB logs really cover the health check responses ? I didn't know that, could you show me a proof of that please ?. I thought it would onlly mirror the requests made to the ALB and their respective responses, but not the health check activities of Target groups ! – Nidorino94 Mar 18 '21 at 08:20

0 Answers0