Skip to content

Instantly share code, notes, and snippets.

@xuhang57
Last active July 9, 2019 18:28
Show Gist options
  • Save xuhang57/26d54e88d5111eb2e59a797fa18bbc8a to your computer and use it in GitHub Desktop.
Save xuhang57/26d54e88d5111eb2e59a797fa18bbc8a to your computer and use it in GitHub Desktop.
Octavia (Load Balancer project in OpenStack) tests
# Create a load balancer
openstack loadbalancer create --name lb1 --vip-subnet-id <SubnetName("public")>
# Create a listener
openstack loadbalancer listener create lb1 --protocol HTTP --protocol-port 80 --name listener1
# Create a pool
openstack loadbalancer pool create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1
# Create a health monitor
openstack loadbalancer healthmonitor create --delay 5 --max-retries 4 --timeout 10 --type HTTP --url-path /healthcheck pool1
# Create members
openstack loadbalancer member create --subnet-id <SubnetName("public")> --address <FIP Address> --protocol-port 80 pool1
openstack loadbalancer member create --subnet-id <SubnetName("public")> --address <FIP Address> --protocol-port 80 pool1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment