O'Reilly logo

Learning OpenStack High Availability by Rishabh Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The load balancing of image services

To load the balance image service, we need to edit the haproxy.cfg file under /etc/haproxy/ using the following command:

sudo gedit /etc/haproxy/haproxy.cfg

Then, we need to edit the file with the following changes:

The load balancing of image services

For the preceding changes to take effect, we need to reload the haproxy file with the following command:

sudo service haproxy reload

Next, we load balance the Glance service backend with Swift storage. For testing purpose, we can add a new image to the Glance service using the following commands:

wget http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
glance image-create --name cirros ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required