Configure Load-Balancing-as-a-Service (LBaas) with the Open vSwitch or Linux Bridge plug-in. The Open vSwitch LBaaS driver is required when enabling LBaaS for OVS-based plug-ins, including BigSwitch, Floodlight, NEC, NSX, and Ryu.
Install the agent:
# apt-get install neutron-lbaas-agent
Enable the HAProxy plug-in using the
service_provider
parameter in the/etc/neutron/neutron.conf
file:service_provider = LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
Enable the load balancer plugin using
service_plugin
in the/etc/neutron/neutron.conf
file:service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin
Enable the HAProxy load balancer in the
/etc/neutron/lbaas_agent.ini
file:device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
Select the required driver in the
/etc/neutron/lbaas_agent.ini
file:Enable the Open vSwitch LBaaS driver:
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
Or enable the Linux Bridge LBaaS driver:
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
Apply the new settings by restarting the
neutron-server
andneutron-lbaas-agent
services.Upgrade from Havana to Icehouse There were changes in LBaaS server-agent communications in Icehouse so during Havana to Icehouse transition make sure to upgrade both server and agent sides before actual use of the load balancing service.
Enable Load Balancing in the
section of the Dashboard user interface:Change the
enable_lb
option toTrue
in the/etc/openstack-dashboard/local_settings
file:OPENSTACK_NEUTRON_NETWORK = {'enable_lb': True,
Apply the new settings by restarting the
httpd
service. You can now view the Load Balancer management options in dashboard's view.