Ask Your Question

Load Balancing for 3 nodes Controller

asked 2019-07-29 03:01:46 -0500

shirak911 gravatar image

updated 2019-07-29 03:03:52 -0500

Hi everyone i had a controller with hostname controller1, and all compute with hostname compute1,2,3 and block storage with hostname block1,2,3. So, all nodes connected with controller1. Now, i want to create a controller 2 and controller 3, i reference document, and they say repeat all steps installation a controller to add for more node into Openstack. But, if i deployment more controller 2 with hostname controller2, how to configure nodes, Where will it connect ?. Because all nodes connected to controller1, in .conf file i configured connect to controller1. how to Load Balancing it, if controller1 fail ?

Please support for me

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2019-07-29 14:09:56 -0500

cbravo gravatar image

Hi, to load balance you have a few options depending on various considerations, for example budget. You can either use a physical load balancer and create a virtual IP on the firewall and based on that balance the virtual IP to the physical IP's. If you don't have a physical load balancer you can look at using HAProxy.

edit flag offensive delete link more


Thanks for you reply cbravo If i add for more node controller 2 and controller 3, how to LB when all nodes configured connected to controller 1 ?

shirak911 gravatar imageshirak911 ( 2019-07-30 02:20:21 -0500 )edit

Configure nova.conf on all nodes, to use VIP address which you created in physical load balancer, instead Controller-1 IP address and restart the nova-compute service. Enjoy

Vasili gravatar imageVasili ( 2019-08-20 20:25:55 -0500 )edit

answered 2019-08-01 07:17:14 -0500

Robby gravatar image

If you are looking for a multinode controller and if i am correct in understanding it, you need to create a controller cluster, followed by database cluster and use HA proxy as a load balancer which will use hostname assigned to virtual ip for endpoints.

edit flag offensive delete link more

answered 2019-07-31 00:40:52 -0500

gilles-mocellin gravatar image


Unless it's a lab and you really want to learn, If you want to build a real production Cloud, you should not build it by hand like that. Look at deployment tools like :

  • openstack-ansible
  • tripleo
  • kolla-ansible

They handle high-availability deployment of controller nodes, with either keepalived+haproxy or pacemaker. Also, less easy, they configure MySQL and rabbitmq in cluster mode (galera for MySQL).

Of course, all services are configured to use the VIP (or a name that resolve to it).

edit flag offensive delete link more


Hi Gilles-mocellin Thanks for your reply, but i think ansible, tripleo just using for learn and POC, not using in production. i known some company built-in by command and code. Now, my openstack have 14 nodes, but one controller, so i want to build a controller cluster. Please help

shirak911 gravatar imageshirak911 ( 2019-07-31 22:15:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-07-29 03:01:46 -0500

Seen: 313 times

Last updated: Aug 01 '19