Amazon EC2 Elastic Load Balancer: Does its IP ever Change?

前端 未结 3 2057
醉酒成梦
醉酒成梦 2020-12-13 13:16

Does the ELB\'s IP Ever Change once setup, or will it always access instances from the same location during its lifetime no matter what might be going on with it be

相关标签:
3条回答
  • 2020-12-13 13:25

    The short answer: Yes, ELB's IP addresses (both the ones that are publicly distributed to clients of your service, and the internal IPs from which ELB sends traffic to your instances) dynamically change.

    The long answer: See my article about how ELB works for more info: http://shlomoswidler.com/2009/07/elastic-in-elastic-load-balancing-elb.html

    0 讨论(0)
  • 2020-12-13 13:36

    I understand this question has been already answered but I found the article "Best Practices in Evaluating Elastic Load Balancing" on the AWS site that explains why the ELB's IP addresses are keep changing.

    By default, Elastic Load Balancing will return multiple IP addresses when clients perform a DNS resolution, with the records being randomly ordered on each DNS resolution request.

    ...and the importance to ask to the DNS the actual IPs to use

    If clients do not re-resolve the DNS at least once per minute, then the new resources Elastic Load Balancing adds to DNS will not be used by clients.

    http://aws.amazon.com/articles/1636185810492479

    0 讨论(0)
  • 2020-12-13 13:38

    ELB's IP address keeps changing. You should instead use the DNS name provided to you.

    http://developer.amazonwebservices.com/connect/thread.jspa?threadID=32280

    0 讨论(0)
提交回复
热议问题