Understanding Load Balancers
- Activity:
- Create the following vpc with two ubuntu ec2 instances
- ensure 80 port is open to all, icmp is open, 22 port
- Login into ec2 instance and install lamp stack
- Execute the following steps
“`bash
ubuntu
sudo apt update
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php php-mysql -ycreate a file at /var/www/html/info.php with content
<?php
phpinfo();
?>
``
http://
* Now access/info.php`
* Steps:
* Now install the lamp following the above mentioned steps
- Create the following vpc with two ubuntu ec2 instances
- Now lets understand OSI Model for networking
- understand layer 4 and layer 7 LB
- Layer 4 LB
- Now lets Navigate using
http://<lb-dns>/info.php
- When we try to access enterprize applications our urls will definetly not be
http://ntierqt4-19ba2b1e1b642aa7.elb.ap-south-1.amazonaws.com/info.php
rather they would behttp://<domainname>/info.php
- Lets create a DNS record for the already purchased domain
awsbykhaja.online
, so we would be using Route 53
- Note: Ensure Aws CLI is installed on your system Refer Here