Load Balancing contd..
Lab setup
- AWS Create a vpc with two public subnets atleast
- Lets build two vms with a website infinity
- inifinity – website1
sudo apt update
sudo apt install nginx -y
sudo apt install unzip
cd /tmp/
wget https://www.tooplate.com/zip-templates/2117_infinite_loop.zip
unzip 2117_infinite_loop.zip
cd 2117_infinite_loop/
sudo mkdir /var/www/html/infinity
sudo cp -r . /var/www/html/infinity/
- other 2 with website vision
Load Balancing w.r.t Network
- AWS has 3 types of Load Balancers
- Network LoadBalancer: This operates at layer 4
- Application Load Balancer: This operates at Layer 7
- Classic Load Balancer:
- Not Recommended to use supports both layer 4 and layer 7
- AWS Also has a Gateway Loadbalancer
Layer 4: Network LB
- Refer Here for official docs
- Watch classroom recording for guided creation
Layer 7: Application LB
- Refer Here for Application LB Docs.
- Watch classroom recording for guided creation
