Configure LBaaS-5 minutes a day to play OpenStack (121)

Source: Internet
Author: User
Tags haproxy

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.