ELB Implementation

Purpose

  • To implement a elastic load balancer for 2 web servers

Steps

  1. Creating 2 EC2 instances (how to), and set different contents of index.html for each web server.

  2. Create a load balancer

    • On EC2 Dashboard page -> left side "LOAD BALANCING" -> "Load Balancers" -> "Create Load Balancer" -> select "Application Load Balancer"

    • Give name and set at least 2 Availability Zones.

    • Configure Security Group

    • Configure Routing, give target name and "set Advanced health check settings"

    • Register Targets, add instances to for load balancing.

    • Waiting for the state of ELB become "active"

  3. Browsing to the DNS name of ELB and refresh the page to the result.

Last updated