Peter
Peter

Reputation: 87

Azure load balancer A record

I need an advice re Azure load balancer. First of all current status

Future plans

We want to make our websites more robust by adding one more virtual machine which will be a backup if something goes wrong with the main machine. Literally we are planing to keep second machine shut down and run it only if the main machine goes off (for any reason).

I'm thinking to achieve this via Azure load balancer. I founded a few tutorials which explain creating load balancer but haven't managed to find any info how to point existing url to load balancer.

Or to re phrase my question which IP address will the load balancer have? The main virtual machine or?

Thanks

Upvotes: 0

Views: 1322

Answers (2)

Bruno Faria
Bruno Faria

Reputation: 5272

If you check your Virtual Machine you will see there's a cloud service associated with it. The cloud service is the one renponsible to provide public ip addresses, hostname, auto scale, load-balance to endpoints and a series of other functionalities to one VM or a set of VMs.

What enables or disables the load balance of your cloud service is something called load-balanced set for endpoints. You can have a single endpoint for a VM or a load-balanced set to distribute a specific type of traffic between multiple virtual machines or services. Check the guide below to find out how to setup:

Configure a load-balanced set

Basically what you want is to create a new VM and add it to the same cloud service as the one you have running today. Don't use quick create, use custom create otherwise you will not have the option to select the cloud service. The second step will be creating a load-balance set for all the endpoints you need both vms to answer. For example, creating a load-balanced set for port 80 would make the incoming requests to be balanced (round-robin) between your 2 vms.

The VIP of all the VMs in the same cloud service will be the same. You won't have to change anything on your public DNS server.

Upvotes: 0

Yves Pitsch
Yves Pitsch

Reputation: 131

Updating link to Azure load balancer documentation: https://azure.microsoft.com/en-us/documentation/articles/load-balancer-overview/

Upvotes: 0

Related Questions