- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi, last week I configured an application load balancer.
Here's a summary of your configuration: ALB ---> 2 ASG (same launch template) rule 1: path request (say /test) to tg1 default tg2
First of all, I encourage you to check the following documentation:
Please ensure that you have correctly added the path (/test/*) in the rule. Additionally, make sure that your application has the correct API, which should be located at the path /test/ and not the root path (/). Also, create the correct listeners for your application. In our case, we were initially configuring HTTPS as the target, but the application was not prepared for it. When we changed it to HTTP, everything started working again."
I hope that can help to you!
It sounds like you have both ASGs registering their instances to both TGs, is that correct? If so, how are you checking which TG the request is getting routed to? Other than the ALB metrics, both requests could be served by any instance. Generally with path based routing like this you would either
- Have a single ASG registering instances to both TGs, and have the webserver handle the correct routing of requests (for example, you might have each TG forwarding requests on a different port). However, in this situation you could also just eliminate the path based routing and second TG, and have the webserver handle the traffic differently based on path
- Have 2 ASGs, each registering instances to one of the TGs. This is usually what you would do if there's differences in the instances themselves (different launch template with different applications/configurations)
Thanks for quick response. No, I have ASG1 registering instances to TG1 and ASG2 to TG2. It is one-one mapping.
Scenario is - In both TG, same application is running, but I want /test path should go to TG1 only and rest of the url path should go to TG2.
Actually application is very old and certain feature works within one instance.
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
Thanks for the response. Issue is resolved after using /test/* path.
One Doubt: Suppose tg1 has only one instance running, and went unhealthy/ unavailable.. Can my /test/* request go to instances behind tg2. For my need, I just want to maintain exactly one instance in tg1.