Ask Your Question

haproxy balancing for HA in Active/Active mode

asked 2015-11-16 07:01:00 -0600

paullaurence gravatar image


I have two Controllers/Service nodes running in Active/Active mode and a couple of HAProxy nodes to balance over them. I have Pacemaker running for L3 agent/metadata agent etc.

I'm using Galera as my cluster database, but the config guide in Openstack set the balancing method in HAProxy to 'service' - which will always select my Controller1 unless it goes down - then Controller2 will be used.

Would it not be more beneficial to set the balancing method to say; round robin and spread the load if multiple users are accessing horizon?

Do you think this way would be more likely to create problems with the Galera database?

thanks in advance.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-11-16 08:01:47 -0600

capsali gravatar image

You can use round-robin or service on almost any openstack services.

But do NOT use load balancing on a master/master galera cluster since it will result in wrinting errors on locked tables.

Instead configure one mysql node to be active and the rest as backup in haproxy config.

edit flag offensive delete link more


Great, thanks - I thought that would be the case.

paullaurence gravatar imagepaullaurence ( 2015-11-18 06:30:07 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-11-16 07:01:00 -0600

Seen: 2,277 times

Last updated: Nov 16 '15