Configuring load balancer
Running a single instance of an application does not guarantee availability. To maximize availability and provide best performance to our users we should be able to easily scale our applications. In this section, we will use an NGINX server to configure load balancing among multiple Music Store containers:
- On the Azure Portal, click on the IP address to assign a custom DNS name to the remote host. We will use this DNS name to configure load balancer endpoints.
- Click on
Configuration
on thePublic IP address
section. - Assign your favorite name in the
DNS name label (optional)
section and click onSave
as shown in the following screenshot:
- Let us create a new NGINX Windows Container image from the development environment and publish it to Docker Hub. The resources for creating NGINX images are available under
chapter5/resources/musicstore-nginx-azure
. There are two files that we will be using here: Dockerfile contains the instructions to install NGINX on a windows server...