Ask Your Question
0

Can haproxy be deployed on one vm of tenant? [closed]

asked 2015-03-16 22:18:04 -0500

nethawk gravatar image

I want to use LBaaS in openstack. Can I deploy haproxy on one vm of tenant created by openstack? How can I do?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by nethawk
close date 2016-01-22 03:35:50.456969

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-17 01:54:19 -0500

alfredcs@yahoo.com gravatar image

Its perfectly OK to run haproxy on one or more VMs to load balance services running on those and/or other VMs. You can manage haproxy by using socket tools such as socat. Unlike LBaaS, the haproxy does not have native APIs however there are some "API wrappers" available.

edit flag offensive delete link more

Comments

Thanks. I know there is a plugin and an agent for LBaaS in Neutron.If haproxy is deployed on a vm,must the agent be deployed on the same vm? How does LBaaS's agent work?

nethawk gravatar imagenethawk ( 2015-03-19 01:20:19 -0500 )edit

Haproxy does not require an agent. It's a virtual layer 7 LB and able to direct traffic to intended services running on the local VM or remote ones, as long as haproxy can access the IPs:Ports. For LBaaS data flow, this page might be able to help.

alfredcs@yahoo.com gravatar imagealfredcs@yahoo.com ( 2015-03-21 01:40:18 -0500 )edit

I know there is a plugin and an agent of haproxy driver in neutron. Can the agent be deployed on the different node with plugin?And this agent must be deployed with haproxy device. I found that the agent completes the configuration of haproxy.

nethawk gravatar imagenethawk ( 2015-03-22 20:44:21 -0500 )edit
0

answered 2015-03-17 00:41:50 -0500

pas-ha gravatar image

Not sure why would you want haproxy on a VM for OpenStack LBaaS. There is a dedicated Neutron LBaaS service for that. If you can not use Neutron and only have Nova-network, you can use Heat to deploy AWS::ElasticLoadBalancing::LoadBalancer resource (that under the hood is a VM with haproxy) to balance traffic for some VMs of the tenant, but that would not be an OpenStack LBaaS - no API, only inside a single tenant etc.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-16 22:18:04 -0500

Seen: 348 times

Last updated: Mar 17 '15