Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
openstack loadbalancer create --name <loadbalancer_name> --vip-subnet-id <subnet_id>

The <subnet_id> can be found through the ADA Cloud Dashboard. On the main menu, select the Network → Netwroks tab. Then, click on your network and select the Subnets tab. Finally, click on the desired subnet. This information can also be gathered using the CLI.

Note: Wait until the creation is completed. It will take a while and the next steps will return an error if the load balancer is not available. 

...

Code Block
openstack loadbalancer member create --subnet-id  <subnet_id> --address <ip_vm_1> --protocol-port 80 <pool_name>

openstack loadbalancer member create --subnet-id <subnet_id> --address <ip_vm_2> --protocol-port 80 <pool_name>

You can find the IPs  of the VMs in the Compute → Instances section of the lateral menu of ADA Cloud Dashboard. The IPs can also be gathered using the CLI.

5. Associate an available Floating IP to the load balancer

Code Block
openstack floating ip set --port <port_id> <floating_ip> 

You can identify find the <port_id> if you navigate to the description of your load balancer on the Openstack Dashboard. ADA Cloud Dashboard. Select the Network → Load Balancers section on the left-hand menu of the dashboard. Then, click on your load balancer and go to the Overview tab.  You can also use the CLI to identify the value of the <port_id>.

Finally, use this floating-You can use this IP to reach the nginx servers (see figure bellow). The traffic will be managed by the load balancer following the algorithm <algorithm_e.g.ROUND_ROBIN> (see Step 3). 

...