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

Source: Internet
Author: User
Tags haproxy

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888429992067798.jpg "/>

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.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888430385068142.jpg "/>

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:
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888430567035106.jpg "/>

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

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888430668091877.jpg "/>

Set up service provider in/etc/neutron/neutron_lbaas.conf

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888430776053442.jpg "/>

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.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888430943082602.jpg "/>

We will practice the following LBaaS environment.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888458739072313.png "alt=" Image740.png "/>

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.

650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161205-1480888431078047040.jpg "alt=" two-dimensional code + fingerprint. png "/>

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.