AMQP connections to RabbitMQ nodes should be load balanced

Bug #1465263 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Library (Deprecated)
Mirantis OpenStack
Won't Fix
Medium
MOS Oslo

Bug Description

In the scope of related bug https://bugs.launchpad.net/bugs/1421611, the rabbitmq single connection point was removed from the HAProxy as Oslo.messaging started supporting multiple AMQP hosts in configuration.

But we can imagine the following scenario which may break the rabbitmq cluster apart under load:
1) Some node A fails and all its AMQP connections switched to another nodes B, C so the load for them will increase by 1/3 each.
2) When node A recovered, it would be running with no load until new connections established. But there is no load balancing and we can expect new connections will land on the nodes A, B, C by 1/3 each again.
3) If the node A continues to fail and recover, the load to the nodes B and C will grow badly.

So, the new AMQP sessions should be accepted by nodes based on the least connections criterion.

Changed in fuel:
importance: Undecided → Medium
milestone: none → 7.0
assignee: nobody → Fuel Library Team (fuel-library)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Added MOS project for the case we decide to make LB at the app level.

Changed in mos:
importance: Undecided → Medium
assignee: nobody → MOS Oslo (mos-oslo)
milestone: none → 7.0
Revision history for this message
Andrew Woodward (xarses) wrote :

We had removed the LB not because of the support of rabbit_hosts increased, but because we found issues with stale connections during failure and fail-over situations. Now that we have connection heatbeats and the lb is in a network namespace, this may be moot. As an extra measure please ensure that this undergoes extensive regression testing. We should create some automated tests to simplify this down the road

Changed in fuel:
status: New → Confirmed
status: Confirmed → New
Changed in fuel:
status: New → Confirmed
Changed in mos:
status: New → Confirmed
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

upstream oslo.messaging team and ops folks do *NOT* recommend using HAProxy. rabbit_hosts is what everyone is using and testing with. (Example - http://markmail.org/message/dzyokzmtu2khdish)

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

thank you for update, marking this bug as won't fix

Changed in fuel:
status: Confirmed → Won't Fix
Changed in mos:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.