Refer to the commands below to find out how to create a load balancer, listener, pool, members and health monitor:

  • Get the Universally Unique Identifier (UUID) of the private subnet:

    neutron subnet-list

  • Create a load balancer:

    neutron lbaas-loadbalancer-create --name lb1 private-subnet

  • Create a listener (health check):

    neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 80 --name listener1

  • Create a pool and associate it with the previously created listener:

    neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1

  • Create members (Real Servers):

    neutron lbaas-member-create --subnet private-subnet --address <ServerIPAddress> --protocol-port 80 pool1

  • Create a health monitor and associate it with the pool:

    neutron lbaas-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3 --pool pool1