63a3b2ef2d
Created also the file for Grafana questions.
1.0 KiB
1.0 KiB
AWS ELB - Network Load Balancer
Requirements
Two running EC2 instances
Objectives
- Create a network load balancer
- healthy threshold: 3
- unhealthy threshold: 3
- interval: 10 seconds
- Listener should be using TCP protocol on port 80
Solution
Console
- Go to EC2 service
- Click in the left side menu on "Load balancers" under "Load balancing"
- Click on "Create load balancer"
- Choose "Network Load Balancer"
- Insert a name for the LB
- Choose AZs where you want the LB to operate
- Choose a security group
- Under "Listeners and routing" click on "Create target group" and choose "Instances"
- Provide a name for the target group
- Set healthy threshold to 3
- Set unhealthy threshold to 3
- Set interval to 10 seconds
- Set protocol to TCP and port to 80
- Click on "Next" and choose two instances you have
- Click on "Create target group"
- Refresh target groups and choose the one you've just created
- Click on "Create load balancer" and wait for it to be provisioned