Azure load balancers have external and internal load balancers, but for the purpose of this document, we will use an internal load balancer. The IP address of this internal load balancer is also used as a virtual IP address later, making it an access point for protected services.
- From Azure Home > Load balancers, select +Add and create a load balancer for this environment as shown in the following table.
Project Details | ||
---|---|---|
Subscription | Your subscrition ID | This is the subscription ID issued when subscribing to Azure services. |
Resource group | sios20rg | |
Instance details | ||
Name | sios20ilb | |
Region | (Asia Pacific) Southeast Asia | |
Type | Internal | *Note 1 |
SKU | Basic | |
Tier | Regional | |
Configure virtual network | ||
Virtual network | sios20vnet | |
Subnet | sios20sub1 (10.20.1.0/24) | |
IP address assignment | Static | |
Private IP address | 10.20.1.200 | *Note 2 |
*Note 1: Since this is an internal load balancer, you must select “Internal”.
*Note 2: This value is also used as a virtual IP address later, making it an access point for protected services.
- Click Review + Create, review the details and then click Create.
- Add the two virtual machines for the created cluster to the backend pool of the internal load balancer. Select Azure Home > Load balancers > Load balancer name > Backend pools > Add and configure the following:
Add Backend Pool | ||
---|---|---|
Name | sios20backendpool | |
Backend Pool Configuration | NIC | |
IP version | IPv4 | |
Associated to (Configure only when Basic is selected for SKU) | Virtual machine | |
Target #1 | ||
Virtual machine | sios20lknode01 | |
IP address | ipconfig1 (10.20.1.11) | *Note |
Target #2 | ||
Virtual machine | sios20lknode02 | |
IP address | ipconfig1 (10.20.1.12) | *Note |
*Note: Link the backend pool with the primary (the first) network interface of the virtual machine you previously created.
- Click Add and verify that the backend pool has been created.
- Click Azure Home > Load balancers > Load balancer name > Health Probes > +Add and configure the following:
Health probe | ||
---|---|---|
Name | sios20probe | |
Protocol | TCP | *Note |
Port | 12345 | *Note |
Interval | 5 | |
Unhealthy threshold | 2 |
*Note: For health probes, specify the port used by the GenLB.
- Click Add and confirm that the probe has been created.
- Next, configure load balancing rules. From Azure Home > Load balancers > Load balancer name > Load balancing rules, click +Add and configure the following:
Add load balancing rule | ||
---|---|---|
Name | sios20ilbrule | |
IP Version | IPv4 | |
Frontend IP address | 10.20.1.200 (LoadBalancerFrontEnd) | |
Protocol | TCP | |
Port | 1521 (Oracle) 5432 (PostgreSQL) |
*Note |
Backend port | 1521 (Oracle) 5432 (PostgreSQL) |
*Note |
Backend pool | sios20backendpool (2 virtual machines) | |
Health probe | sios20probe (TCP:12345) | |
Session persistence | None (default) | |
Idle timeout | 4 (default) | |
Floating IP | Enabled |
*Note: Specify the port used by the application as the load balancing port.
- Click OK and verify that the load balancing rule has been created.
- Open Azure Home > Virtual machines and start the following three virtual machines and log in as lkadmin via RDP. If you are using a domain, add all three to the domain and log in as an administrator of the domain. (Steps to add VMs to the domain are not described in this document. Here we add the machines to the sios20.local domain and log in as SIOS20\lkadmin.)
- sios20lknode01
- sios20lknode02
- sios20lkclient
Post your comment on this topic.