What is the purpose of a load balancer?
To distribute request and response traffic across multiple servers to manage and optimise server response time and server load.
What are the alternatives to using horizontal scaling and adding load balancing servers?
You can use vertical scaling and increase the size of the VM.
What are the disadvantages of scaling vertically to avoid using a load balancing solution?
Vertical scaling can increase costs more steeply than horizontal scaling with load balancing and having multiple VMs does remove the SPOF (single point of failure) so if a server goes down, there are other servers to handle the traffic when scaling horizontal scaling plus load balancing. Also scaling out by adding a new vm does not require restarting a VM so the traffic is handled during the process of adding a VM whereas swapping a single VM for a larger one would require a VM restart during which no traffic would be handled.
What are the SLA (service level agreement) stated availability that Azure guarantees?
What are the load balancing options offered by Azure?
What are the SKUs o azure load balancers?
How to create an azure load balancer?
What are the main differences between the standard and basic Azure load balancer SKU?
Basic
What’s the difference between the regional and the global tier of azure load balancers?
Regional only support forwarding traffic to VMs, availability sets or scale sets in the same region as the load balancer. Global tier load balancers support them from other regions.
What is a load balancer frontend?
It’s the ingress point where inbound traffic is sent i.e. the ip address of your application. Then the load balancer forwards the traffic to the backend servers according to the algorithm and configuration of the load balancer.
How do you create the load balancing rules?
Configure that in the inbound rules and outbound rules of the load balancer frontend.
What is the purpose of source network access translation (SNAT)?
In terms of load balancing, this is used to perform traffic ip translation from the backend servers to the other side of the load balancers.
What is a backend pool?
This is a sort of container where all the vms to which the loadbalancer frontend can forward trafic to exist. The load balancer frontend cannot forward traffic to vms outside of a backend pool. Non azure VMS must be added to a backend pool to be serviced by the LBFR.
How to add a backend pool to a loadbalancer?
From the azure ui interface of the load balancer there is a link to backend pools in the blade menu. From there you can create one or more backend pools and add backend vms or servers to it by NIC association or IP addresses.
What are the available health probed which can be added to an Azure load balancer?
What is the purpose of health probes?
The load balancer uses these to determine if a backend server is healthy or not. Backend servers it deems to be unhealthy will not receive traffic (though th ehealth probes will continue and once it is healthy again it will have traffic directed to it).
TCP health probes (level 4) don’t have any particular interest in the state of the app, they just see if requests to the IP and port receive an expected response.
HTTP or HTTPS health probes can be more useful as if you have a ip/health_probe.html page, then the application stats can be returned and logic around the health of the back end state can be implemented.
Where can you access quick starts for Azure services like loadbalancer?
In the github repo https://github.com/Azure/azure-quickstart-templates
What is the difference between an Azure load balancer’s inbound NAT rules and it’s load balancing rules?
Inbound NAT rules are explicit, predictable and non-dynamic. They are essentially mapping of inbound traffic on port X to a single backend server on port Y.
Load balancing rules are smarter and choose which backend server to forward traffic to according to the configured rules. In this way you cannot predict which backend server will receive the traffic but you can be sure that it will be a well reasoned one.
How can you be configure alerts to notify you when health probes are failing?
Using the alerts link in the blade menu of the load balancer in the Azure UI.
What is the purpose of an application gateway and why is it different to a load balancer?
A standard level 4 load balancer like the Azure load balancer can only understand ports and ips. It cannot understand URLs or be highly customised with logic. For that purpose, you need to use an application gateway which is a level 7 loadbalancer so it does understand HTTP based rules.
Is there a free option for application gateways?
No
What are the main choices to make when creating a new application gateway?
What is the mechanism for traffic routing in an application gateway?
Essentially the difference is that you do path based routing rather than ip and port based routing. Traffic is forwarded to the correct IP but depending on the url, it could be sent to specific servers. This could be forward to CDN endpoints when the request is for an image for example.