Book Image

OpenStack Networking Cookbook

Book Image

OpenStack Networking Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenStack Networking Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding a load balancer member using CLI


In this recipe, we will add a load balancer member using the Neutron CLI.

Getting ready

For this recipe, you will need the following information:

  • The SSH login credentials for a node where the Neutron client packages are installed

  • A shell RC file that initializes the environment variables for CLI

  • The IP address of the member

  • The protocol port of the application running in the member

  • The name of the load balancer pool where this member will be added

How to do it…

The following steps will show you how to add a load balancer member using the Neutron CLI:

  1. Using the appropriate credentials, SSH into the OpenStack node installed with the Neutron client packages.

  2. Source the shell RC file to initialize the environment variables required for the CLI commands.

  3. Execute the neutron lb-member-create command to add the member to the load balancer pool. Optionally, you can also provide a weight for this member:

How it works…

The weight of the member is a relative value that decides...