My understanding of the ELB is a usable area such as public of cn - north - 1 a subnet configures instances are added to the available after ELB area can be added to the ELB, as long as the security group set up correctly, and ELB processing request to forward the request to the instance after instance ELB will no longer control the request, this time instance will directly communicate with the request of the client, so instance is also need to be able to access the Internet, because China has not yet been NAT service, so I joined the point to the Internet gateway in subnet1 route, the previously created two instances are created automatically assigned the public IP (don't know whether understand so),
Situation now is: adding public subnet subnet2 ELB, create two instances with public IP in subnet1 and add instance to the ELB, for instance can connect Internet so in subnet1 have also joined the route to IGW, open all the security group,
Finally enter ELB DNS in the browser, can get the page instance, every time is not creating ELB can get to the instance, and every time, even if access to the instance, after a period of time also can't get, and I'll subnet1 is two instances in the subnet to join ELB cannot obtain, but ELB DNS is always able to ping, remain the InService instances, excuse me this kind of phenomenon is why?
CodePudding user response:
Didn't met thisCodePudding user response: