In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to configure OpenStack lbaas haproxy v1v2, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
Lbaas v2 haproxy###
1 install the software
# apt-get install haproxy neutron-lbaasv2-agent # yum install haproxy neutron-lbaasv2-agent
Second configure LBaaS v2 with an agent
1 # vi / etc/neutron/neutron.conf is added after the existing plugins
Service_plugins = [existing service plugins], neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
2 # vi / etc/neutron/neutron_lbaas.conf add the following line
Service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
3 enable HAProxy load balancer in the / etc/neutron/lbaas_agent.ini file
# vi / etc/neutron/lbaas_ agent.ini [default] interface_driver = originon.agent.linux.interface.OVSInterfaceDriver [haproxy] user_group = haproxy
4 run neutron-lbaas database migration
# neutron-db-manage-service lbaas upgrade head
If you have deployed LBaaS v1, stop the LBaaS v1 agent now. V1 and v2 agents cannot run at the same time.
5 restart the service
# service neutron-lbaasv2-agent restart# service neutron-server restart
Three check the log
# tail-f / var/log/neutron/neutron-lbaasv2-agent.log
4. Create a test (v2 version is not supported in horizon interface)
# neutron lbaas-loadbalancer-create-- name test-lb test108# neutron lbaas-loadbalancer-show test-lb# neutron security-group-create lbaas# neutron security-group-rule-create-- direction ingress-- protocol tcp-- port-range-min 80-- port-range-max 80-- remote-ip-prefix 0.0.0.0 lbaas# neutron security-group-rule-create-- direction ingress-- protocol tcp-- port-range-min 443-- port -range-max 443-- remote-ip-prefix 0.0.0.0 protocol-port 0 lbaas# neutron security-group-rule-create-- direction ingress-- protocol icmp lbaas# neutron port-update-- security-group lbaas $PORT-ID# neutron lbaas-listener-create-- name test-lb-http-- loadbalancer test-lb--protocol HTTP-- protocol-port 84th neutron lbaas-pool-create-- name test-lb-pool-http-- lb-algorithm ROUND _ ROBIN-listener test-lb-http-protocol HTTP# neutron lbaas-member-create-subnet test108-address 192.168.108.126-protocol-port 80 test-lb-pool-http# ping ip# ps aux | grep haproxylbaas v1 haproxy
1 install the software
# apt-get install haproxy neutron-lbaas-agent
1 # vi / etc/neutron/neutron.conf is added after the existing plugins
Service_plugins = lbaas
2 # vi / etc/neutron/neutron_lbaas.conf add the following line
Service_provider = LOADBALANCER:Haproxy:neutron_lbaas.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
3 enable HAProxy load balancer in the / etc/neutron/lbaas_agent.ini file
# vi / etc/neutron/lbaas_ agent.ini [default] # Select the required driver in the file / etc/neutron/lbaas_agent.ini # activate the Open vSwitch load balancer as a service driver: # interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver### or activate the Linux bridge load balancer as a service driver: # interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriverinterface_driver = accounon.agent.linux.interface.OVSInterfaceDriverproxy user_group = haproxy
4 create the required tables in the database:
# neutron-db-manage-service lbaas upgrade head
5 restart the service if you have deployed LBaaS v2, stop the LBaaS v2 agent now. V1 and v2 agents cannot run at the same time.
# service neutron-lbaas-agent restart# service neutron-server restart
Second, check the log
# tail-f / var/log/neutron/neutron-lbaas-agent.log
Create a test (horizon interface supports v1 version configuration)
The above is all the contents of this article "how to configure OpenStack lbaas haproxy v1v2". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.