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 health monitor using CLI


In this recipe, we will create a health monitor to watch the health of the application that is running on the load balancer members 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 type of monitor

  • The time interval between consecutive health check request sent by the monitor

  • The amount of time to wait for a reply from the application

  • The number of times the monitor will try to get a reply from the application

How to do it…

The following steps will show you how to create and associate a health monitor with a load balancer pool:

  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-healthmonitor...