Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:chajain:branches:Cloud:Openstack:Master
python-oslo.messaging
0001-Use-default-exchange-for-direct-messaging....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Use-default-exchange-for-direct-messaging.patch of Package python-oslo.messaging
From b67a457e4fa71e9220c149087dce013c7f81144f Mon Sep 17 00:00:00 2001 From: Oleg Bondarev <obondarev@mirantis.com> Date: Mon, 27 Aug 2018 12:18:58 +0400 Subject: [PATCH] Use default exchange for direct messaging Lots of exchanges create problems during failover under high load. Please see bug report for details. This is step 1 in the process: only using default exchange when publishing. Consumers will still consume on separate exchanges (and on default exchange by default) so this should be (and tested to be) a non-breaking and upgrade-friendly change. Step 2 is to update consumers to only listen on default exchange, to happen in T release. Change-Id: Id3603f4b7e1274b616d76e1c0c009d2ab7f6efb6 Closes-Bug: #1789177 (cherry picked from commit 3a5de89dd686dbd9660f140fdddd9c78b20e1632) --- diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py index f45b845..2c9f6f4 100644 --- a/oslo_messaging/_drivers/impl_rabbit.py +++ b/oslo_messaging/_drivers/impl_rabbit.py @@ -1116,6 +1116,7 @@ responses for call/multicall """ + # TODO(obondarev): use default exchange since T release consumer = Consumer(exchange_name=topic, queue_name=topic, routing_key=topic, @@ -1282,7 +1283,7 @@ def direct_send(self, msg_id, msg): """Send a 'direct' message.""" - exchange = kombu.entity.Exchange(name=msg_id, + exchange = kombu.entity.Exchange(name='', # using default exchange type='direct', durable=False, auto_delete=True,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor