concept load balancer in category azure

appears as: load balcers, load balcer, load balancer, load balcer, A load balcer, Load balcers, A load balcer, The load balcer
Learn Azure in a Month of Lunches, Second Edition

This is an excerpt from Manning's book Learn Azure in a Month of Lunches, Second Edition.

It sounds obvious, but a VM needs network connectivity if you want anyone to reach your applications. For a basic web server, you need both a virtual network and external connectivity. Chapter 5 covers core Azure networking in detail, and chapter 9 gets into how to distribute traffic to multiple VMs by using load balancers. Things get really cool in chapter 11, with Azure DNS and global routing of end users with Traffic Manager. I won’t make you a network engineer, but you’re going to learn a lot of Azure networking in this book!

Load balancers are network resources that receive the incoming application traffic from your customers, examine the traffic to apply filters and load-balancing rules, and then distribute the requests across a pool of VMs that run your application. In Azure, there are a couple of ways to load-balance traffic, such as if you need to perform SSL off-loading on large applications that use encrypted network traffic. In this chapter, you’ll learn about the various load-balancer components, and how to configure traffic rules and filters and distribute traffic to VMs. You’ll build on the high-availability components from chapter 8 and get ready for chapter 9, which covers how to scale resources.

Load balancers in Azure can work at two levels: layer 4, where just the network traffic is examined and distributed (the transport layer, really); and layer 7, where there’s an awareness of the application data within the network traffic to help determine the distribution of data. Both levels of load balancer work the same way, as shown in figure 8.1.

Figure 8.1 Traffic from the internet enters the load balancer through a public IP address that’s attached to a frontend IP pool. The traffic is processed by load-balancer rules that determine how and where the traffic should be forwarded. Health probes attached to the rules ensure that traffic is distributed only to healthy nodes. Then a backend pool of virtual NICs connected to VMs receives the traffic distributed by the load-balancer rules.

A load balancer consists of a few main components:

  • Frontend IP pool --Entry point to the load balancer. To allow access from the internet, a public IP address can be attached to the frontend IP pool. Private IP addresses can be attached for internal load balancers.