celery RabbitMQ queue slowly increasing on ackee

Bug #972098 reported by Haw Loeung
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
William Grant

Bug Description

Hi,

The celery RabbitMQ queue is slowly increasing on ackee. 2 hours ago, it was at 53. Now it is at 259:

Any chance someone could take a look?

Thanks,

Haw

Related branches

Haw Loeung (hloeung)
Changed in launchpad:
importance: Undecided → Critical
assignee: nobody → Aaron Bentley (abentley)
tags: added: canonical-losa-lp
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 972098] [NEW] celery RabbitMQ queue slowly increasing on ackee

(I asked Haw to assign this to Aaron as he and Abel have been bringing
up the celery stack for LP).

The alert has been squelched for now, but if the growth rate were to
accelerate we'd run into rabbit memory issues - we've got a few days
grace I suspect.

Revision history for this message
Tom Haddon (mthaddon) wrote :

Just got another alert - we're now at "CRITICALS: * in * has 945 messages"

Revision history for this message
Tom Haddon (mthaddon) wrote :

Seems this will keep accumulating until we complete https://rt.admin.canonical.com//Ticket/Display.html?id=51940

Aaron Bentley (abentley)
Changed in launchpad:
status: New → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Aaron Bentley (abentley)
tags: added: qa-ok
removed: qa-needstesting
Steve Kowalik (stevenk)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
David Ames (thedac) wrote :

https://rt.admin.canonical.com//Ticket/Display.html?id=51940 has been completed. And ackee is on revno 15288

However the alert is at CRITICALS: * in * has 6585 messages still. What remains to be done?

Revision history for this message
Aaron Bentley (abentley) wrote :

What needs to be done depends on what queues still have messages.

David Ames (thedac)
Changed in launchpad:
status: Fix Released → In Progress
Revision history for this message
David Ames (thedac) wrote :

It is the celery queue

#Vhost Name Messages_ready Messages_unacknowledged Messages Consumers Memory Time
/ celery 6585 0 6585 0 2914608 1337883002

Revision history for this message
Aaron Bentley (abentley) wrote :

It's not clear what to do, then. Since that queue is not being used, nothing will drain it. A full rabbit reset would clear all queues. We could perhaps write a custom script to purge the celery queue.

Revision history for this message
JuanJo Ciarlante (jjo) wrote :

@abentley: "We could perhaps write a custom script to purge the celery queue." <- please do, as this should be part of a graceful cleanup in general (for deprecated "storage").

Revision history for this message
JuanJo Ciarlante (jjo) wrote :

FTR downtimed +1wk in nagios.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 972098] Re: celery RabbitMQ queue slowly increasing on ackee

If the queue isn't needed, you can just delete it via the rabbitctl UI.

If the queue *is* needed, then we need to have a consumer consuming from it ;)

Revision history for this message
Aaron Bentley (abentley) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-05-28 07:45 PM, Robert Collins wrote:
> If the queue isn't needed, you can just delete it via the rabbitctl
> UI.

Could you provide a specific invocation, please? I've looked, and I
couldn't find anything that would clear/delete one queue at a time.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/EyuQACgkQ0F+nu1YWqI1GVQCdHZTorCnBYrhZsKLmk8kCz0T5
EuAAnRB6tydmdiuvICFC7f0WeCxZ443j
=1Mug
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, May 30, 2012 at 1:11 AM, Aaron Bentley <email address hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12-05-28 07:45 PM, Robert Collins wrote:
>> If the queue isn't needed, you can just delete it via the rabbitctl
>> UI.
>
> Could you provide a specific invocation, please?  I've looked, and I
> couldn't find anything that would clear/delete one queue at a time.

Oh blah, you are right; I am thinking of functionality in the
management plugin CLI - http://www.rabbitmq.com/management-cli.html

We have, I believe, installed the management plugin, which will permit
this via both HTTP and the CLI tool it provides.

-Rob

Revision history for this message
David Ames (thedac) wrote :

I have purged and removed the celery queue from production and staging

Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Aaron Bentley (abentley) → William Grant (wgrant)
William Grant (wgrant)
Changed in launchpad:
status: In Progress → Fix Released
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.