Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load balance azure website

Is it possible (and how) to load balance Azure web sites?

Situation is that I have a web site which I deployed to few redundant nodes. Now I would like to set up load balancing for reliability purposes.

I see that load balancing is done using Traffic Manager service which I tried to use, however Traffic Manager doesn't allow me to add a web site endpoint. It only allows me to add a custom virtual machine I have. On a side note, web sites are running in standard mode which means each runs on it's own VM which led me to believe I could load balance them.

I see people create separate VMs with Windows Server and use IIS ARR to perform actual web request load balancing. Is there a way in Azure to load balance web sites directly?

like image 610
Nikola Radosavljević Avatar asked Feb 27 '14 22:02

Nikola Radosavljević


People also ask

Does Azure have a load balancer?

With Azure Load Balancer, you can scale your applications and create highly available services. Load balancer supports both inbound and outbound scenarios. Load balancer provides low latency and high throughput, and scales up to millions of flows for all TCP and UDP applications.

How does load balancing work in Azure?

Azure load balancer overview An Azure load balancer is a Layer-4 (TCP, UDP) load balancer that provides high availability by distributing incoming traffic among healthy VMs. A load balancer health probe monitors a given port on each VM and only distributes traffic to an operational VM.

How do you load a webserver balance?

To load balance Web servers, traditionally you use the DNS round-robin feature to evenly distribute Web server IP addresses to clients; thus, your Web servers are equally accessible.


1 Answers

While converting over to web roles can very well suit your needs, an easier alternative may be to simply promote the web site up to the 'standard' tier, then increase the instance count. Windows Azure will then automatically handle load balancing the instances and even help ensure session affinity (which web roles can't do unless you jump through additional hoops).

like image 107
BrentDaCodeMonkey Avatar answered Oct 14 '22 10:10

BrentDaCodeMonkey