5

How to test whether AWS elastic load balancer is working properly or not? Is there any test or thing with which we can verify it?

Regards

Ruby Akhtar
  • 51
  • 1
  • 4
  • Your application's external IP address is IP address of ELB. If you app is working. Now if you need to check if a specific instance is healthy, you need to check heath checks – forvaidya Jul 28 '16 at 11:06

1 Answers1

4

To check the web load balancer, you can simply create two different web pages with the same filename on two servers.

Server 1: index.html

<html><body>This is server 1</body></html>

Server 2: index.html

<html><body>This is server 2</body></html>

Then you browse the webpage with the public IP address that load balancer provided. When you see "This is server 1", you are connecting to server 1, vice versa.

Under the load balancer configuration page, you can see how many instances are running. server status

Simon MC. Cheng
  • 291
  • 1
  • 6
  • 1
    ELB does not use Elastic IP addresses. – Matt Houser Jul 28 '16 at 14:32
  • 1
    You'll need to perform your test using more than one client computer. ELB will keep sending requests to the same EC2 instance that originate from the same remote IP. Meaning, if you keep refreshing your browser on the same computer, it won't jump between EC2 instances. You need to try on another computer to get a different EC2 instance. – Matt Houser Jul 28 '16 at 14:33
  • Yes Matt, I will modify my answer for that. – Simon MC. Cheng Jul 29 '16 at 01:45