Ask Your Question
0

haproxy balancing for HA in Active/Active mode

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

paullaurence gravatar image

Hi,

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.

Paul

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

Comments

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

paullaurence gravatar imagepaullaurence ( 2015-11-18 06:30:07 -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

Stats

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

Seen: 1,938 times

Last updated: Nov 16 '15