LBaaS implementation Mechanism-5 minutes a day to play OpenStack (125)

Source: Internet
Author: User
Tags haproxy

In the previous section, we have configured and tested LBaaS, and today we focus on how Neutron uses Haproxy to achieve a balanced balance.

Running IP netns on the control node, we found that Neutron created a new namespace qlbaas-xxx.

The namespace corresponds to the pool "Web servers" we created. Its naming format is qlbaas-< pool id>.

You can view its settings through IP a.

The VIP 172.16.100.11 is already configured on the namespace interface. The corresponding configuration of the interface can also be found in the Port list of the subnet.

For each pool,neutron, a haproxy process is initiated to provide load balancering functionality. To find the haproxy process through the PS command:

The Haproxy configuration file is saved in the/opt/stack/data/neutron/lbaas/< pool id>/conf. To view the configuration content of Web servers:

can see: 1. The HTTP address used by Frontend is vip:802. The HTTP addresses used by backend are 172.16.100.10:80 and 172.16.100.9:803. The Balance method is Roundrobin

The content is consistent with our previous configuration.

The above is the Neutron realization LBaaS of the reason.
In the next section we discuss how to access the VIP via floating IP.

LBaaS Implementation Mechanism-play OpenStack 5 minutes per day

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.