I have below application configuration,
and wanted to have a load balancer configuration is responsible for load balancing requests to application 2, how could I make that possible? I can't use port mapping since application 1 and 2 are on same port number.
Solved! Go to Solution.
I found this discussion in google groups that can be useful to clarify your doubts.
Quoting:
Specific to network load balancing, since the load balancer has an external IP address, and because that type of load balancer is not a proxy, packets are delivered with the destination IP being the external IP of the load balancer itself. The instances in the target pool are configured to receive those packets by virtue of a NAT mapping performed by the load balancer's forwarding rule. Traffic is then delivered to the primary network interface of the VM.
VMs can only have a single network interface per VPC network, and load balancing only delivers packets to the primary network interface of a VM.
If you have your application 2 bound to alias IP, you can't deliver packages from the load balancer because the LB only delivers in the primary network.