Description: Here I have explained what is Load balancing and How to configure it on Azure
What is Load Balancing: Load balancing means distribute incoming traffic equally to group of servers [Backend Pool] Client's request comes to load balancer and then it distribute to backend server according to traffic. Two types of Load Balancer are available in Azure.
- Internal LB: It work within internal environment
- Public LB: It work with external environment
Configure Public Load Balancer: Here I will prepared 2 Web server in Ubuntu machine with Name Webserver1 and Webserver2 in Azure and configure Loadbalancer on same.
- Navigate to Networking tab and select Load Balancer
- Fill all require details and create Load balancer
- Add tag to Load Balancer and create load balancer
- Once it configured need to setup back end pool first in loadbalancer
- Add virtual machine to backend pool
- Once Backed pool configure add health probes like in every 5 seconds it will check port 80 and if 2 threshold found then it moved to another server.
- Now it is time to add Load Balancing Rule
- We create vitual machine for loadbalacing select availability option "Availability Zone" and in Availability Zone use "1"
- Select Load Balancer under Networking tab and use backendpool and balancer
- Same way create Webserver2 under loadbancer
- Once both virtual machine created you must need to allow port 80 under network security group
- Your loadbalancer is ready you can browse public IP address
- You can disable apahce2 service on one server and test it
No comments:
Post a Comment