Creating pool members in the CLI

To create a pool member, use the neutron lbaas-member-create command as follows:

neutron lbaas-member-create
[--tenant-id TENANT_ID]
[--name NAME]
[--weight WEIGHT]
[--admin-state-down]
--subnet SUBNET
--address ADDRESS
--protocol-port
PROTOCOL_PORT
POOL

The --tenant-id argument is optional and can be used to associate the pool member with a project other than the creator. The tenant or project ID specified should match the respective load balancer.

The --name argument is optional and can be used to set the name of the pool member.

The --weight argument allows you to associate a weight with the pool member. When set, a pool member may receive more or less traffic than other members in the same pool. For example, a pool member with a weight of 2 will receive twice the amount of traffic as a pool member with a weight of 1. A pool member with a weight of 3 will receive three times the traffic as a pool member with a weight of 1, and so on.

The --admin-state-down argument is optional and can be used to set the pool member DOWN on creation.

The --subnet argument is required and is used to specify the subnet of the pool member.

The --address argument is required and is used to specify the IP address of the pool member. The IP address must fall within the specified subnet CIDR.

The --protocol-port argument is required and is used to specify the listening port of the application being balanced. For example, if you are balancing HTTP traffic, the listening port specified would be 80. For SSL traffic, the port specified would be 443. In most cases, the VIP associated with the pool will utilize the same application port number.

The POOL argument is required and associates the pool member with the specified pool.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset