The previous section learned the principles of Neutron LBaaS and began to practice today. First, enable the LBaaS service in the configuration.
Neutron provides Lbaas services through Lbaas plugin and Lbaas agents.
Lbaas plugin runs on the control node with Neutron Server. The Lbaas agent runs on the network node. For our experimental environment, the control node and the network node are one, all of which are devstack-controller.
Configuring the LBaaS agent
The place where the Neutron configuration LBaaS agent is/etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini.
Define Interface_driver:
The role of Interface_driver is to set the Load Balancer network interface driver, which can have two options:
Linux Bridge
Interface_driver = Neutron.agent.linux.interface.BridgeInterfaceDriver
Open VSwitch
Interface_driver = Neutron.agent.linux.interface.OVSInterfaceDriver
Configuring LBaaS Plugin
Set the Enable LBaaS plugin in/etc/neutron/neutron.conf
Set up service provider in/etc/neutron/neutron_lbaas.conf
As you can see from the annotation information, third-party provider, such as Radware,vmwareedge, are supported in addition to the default Haproxy,neutron.
Restart the neutron service to ensure that the LBaaS is running properly.
We will practice the following LBaaS environment.
The environment is described as follows: 1. Create a Pool "Web Servers". 2. Two pool member "WEB1" and "WEB2" are all instance running Ubuntu cloud image. 3. The load balancer VIP is associated with the floating IP. 4. The client on the extranet accesses the Web server through the floating IP.
At the beginning of the next section we will implement this LBaaS step-by-step.
Configure LBaaS-5 minutes a day to play OpenStack (121)