I am trying to configure an AWS Application Load Balancer to load balance multiple applications (4) running on two EC2 instances.
My application architecture is as follows:
- instance 1 (4 applications running on ports: 8080, 8081, 8082, 8083)
- instance 2 (4 applications running on ports: 8080, 8081, 8082, 8083)
I would like to use HTTP port 80 and create an entry for each of these ports.
I previously tried the classic load balancer configuration but this does not support listening for more than one HTTP port 80 entry.
I have never used the Application Load Balancer before, but have tried configuring a target group rule to test it out. My rule checks for the path /applicationName and the port to check is 8081 with the idea that my application url would include http://"ipaddress":8081/applicationName.
Ideally I would like to create a rule for each application.
Does anyone have any insight as to if this type of load balancer can even be used for this set up and if so, how to set it up properly?