[rabbitmq-discuss] Pika Client: Bad performance for basic_publish to durable mirror queue
matthias at rabbitmq.com
Mon Jul 8 10:24:25 BST 2013
On 08/07/13 09:59, Jesper Louis Andersen wrote:
> On Fri, Jul 5, 2013 at 6:11 PM, linbo liao <llbgurs at gmail.com
> <mailto:llbgurs at gmail.com>> wrote:
> I encounter a bad performance issue about pika, yesterday it works
> fine, but today performance of basci_publish got bad, it cost 2 or 3
> second to finish one message, sometimes down to 7 seconds.
> Pika is 0.9.13
> RabbitMQ 3.1.0, Erlang R14B04 Queue is Durable
> Python: 2.6
> Platform: CentOS release 6.3 (Final) X64
> I would look at the broker and see if it uses a lot of memory or if it
> in any way looks like it is operating in a bad way. You need to slice
> your problem: It could be the broker, your client or -- likely -- the
> way your client uses the broker.
Also, the OP is putting the channel into confirm mode, and waits for
every single publish to be confirmed, thus making publishing synchronous
which in turn makes it sensitive to not just load-induced server-side
processing delays but also network delays.
More information about the rabbitmq-discuss