Set up load balancer availability zones
In Red Hat OpenStack Services on OpenShift (RHOSO), Load-balancing service (octavia) availability zones (AZs) enable project users to create load balancers to increase traffic throughput and reduce latency. Load-balancing AZs are often used on distributed compute node (DCN) and edge environments.
Create availability zones for load balancing Copy linkLink copied!
There are two steps required to create a Load-balancing service AZ: RHOSO administrators must first create a load-balancer AZ profile, and then use the profile to create a Load-balancing service AZ that is visible to users.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges. - The load balancer created with the AZ must use the amphora load-balancing provider.
The OVN load-balancing provider uses another mechanism to support availability zones that is native to OVN.
- You must have a DCN environment in which the required networking resources have been created by running the
octavia-dcn-deployment.yamlAnsible Playbook.
- You have access to a Compute service (nova) AZ.
- Your site has access to a management network. You have two options:
- A "stretched" Layer 2 load-balancing management network.
- A distributed Compute node (DCN) environment where you want to isolate your networks.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Confirm that the AZ (
az0) was created. Repeat this step for any additional AZs, using the appropriate name for each AZ.- Example - verify
az0 $ openstack loadbalancer availabilityzone show az0- Sample output
+------------------------------+--------------------------------------+ | Field | Value | +------------------------------+--------------------------------------+ | name | az0 | | availability_zone_profile_id | 5ed25d22-52a5-48ad-85ec-255910791623 | | enabled | True | | description | AZ for Headquarters | +------------------------------+--------------------------------------+- Example - verify
az1 $ openstack loadbalancer availabilityzone show az1- Sample output
+------------------------------+--------------------------------------+ | Field | Value | +------------------------------+--------------------------------------+ | name | az1 | | availability_zone_profile_id | e0995a82-8e67-4cea-b32c-256cd61f9cf3 | | enabled | True | | description | AZ for South Region | +------------------------------+--------------------------------------+- Example - verify
az2 $ openstack loadbalancer availabilityzone show az2- Sample output
+------------------------------+--------------------------------------+ | Field | Value | +------------------------------+--------------------------------------+ | name | az2 | | availability_zone_profile_id | 306a4725-7dac-4046-8f16-f2e668ee5a8d | | enabled | True | | description | AZ for North Region | +------------------------------+--------------------------------------+
- Example - verify
What to do next Copy linkLink copied!
Create load balancers in availability zones Copy linkLink copied!
With the Red Hat OpenStack Services on OpenShift (RHOSO) Load-balancing service (octavia), you can create load balancers in availability zones (AZs) to increase traffic throughput and reduce latency. Common use cases for load-balancing AZs are distributed compute node (DCN) and edge environments.
Before you begin Copy linkLink copied!
- You must have a Load-balancing service AZ provided by your administrator.
- The virtual IP (VIP) network associated with the load balancer must be available in the AZ in which your load balancer is a member.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Confirm that the load balancer (lb1) is a member of the availability zone (
az1).- Example
$ openstack loadbalancer show lb1- Sample output
+---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | admin_state_up | True | | availability_zone | az1 | | created_at | 2024-07-12T16:35:05 | | description | | | flavor_id | None | | id | 85c7e567-a0a7-4fcb-af89-a0bbc9abe3aa | | listeners | | | name | lb1 | | operating_status | ONLINE | | pools | | | project_id | d303d3bda9b34d73926dc46f4d0cb4bc | | provider | amphora | | provisioning_status | ACTIVE | | updated_at | 2024-07-12T16:36:45 | | vip_address | 192.0.2.229 | | vip_network_id | d7f7de6c-0e84-49e2-9042-697fa85d2532 | | vip_port_id | 7f916764-d171-4317-9c86-a1750a54b16e | | vip_qos_policy_id | None | | vip_subnet_id | a421cbcf-c5db-4323-b7ab-1df20ee6acab | | tags | | +---------------------+--------------------------------------+