Ask Your Question

lbaas v2 with haproxy as reference implementation

asked 2016-01-06 09:52:30 -0600

aksan gravatar image

The lbaas v2 now are using octavia as reference implementation. I wanted to know the difference the between octavia and haproxy implementation. Also, where can i get details of the features of loadbalancer when haproxy is reference implementation? There are design docs for octavia at "". Is there some docs for lbaas when octavia is not used and haproxy is used?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-07 00:06:57 -0600

Prateek K gravatar image

I recently got a chance to work on both lbaas and lbaasv2... So it goes like this

  1. lbaas - it uses HAProxy inside. This runs as a process inside the network namespace. This namespace is present in the network node of the openstack setup. When the user hits the lbaas IP it goes to the network namespace where HAproxy is running and then its al HAproxy working with its pools, members and crazy load balancing stuff

  2. lbaasv2- Ot uses an image known as Amphora inside. When we talk about image its actually a VM getting created on the compute node. This entire project is known as Octavia. In layman terms a virtual machine is created instead of a network namespace. Inside this VM the LBAAS service is running and will have its pools, members and crazy load balancing stuff

Why have we done it :-

  • This is an operator grade LbaaS
  • Suppose you see that the performance of load balancer is not good and you require more resources. This can be easily done by providing a new flavor to the VM.
edit flag offensive delete link more


Hi, Thanks for the details. I think there is also an option to run lbaas v2 without octavia, using the previous haproxy implementation. Can you describe that in details? By that i mean lbaas v1 vs lbaas v2 with haproxy as reference implementation.

aksan gravatar imageaksan ( 2016-01-07 08:18:39 -0600 )edit

Yes that can also be done... In that case you have to go to the lbaas config file and enable HA proxy drivers and disable octavia .. Follow the same openstack lbaasv1 guide to configure it and it should work fine

Prateek K gravatar imagePrateek K ( 2016-01-08 00:53:46 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-06 09:52:30 -0600

Seen: 609 times

Last updated: Jan 07 '16