Closed Bug 1607561 Opened 5 years ago Closed 5 years ago

Automatically delete RabbitMQ queues for Heroku Review Apps

Categories

(Tree Management :: Treeherder: Infrastructure, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: suyash546)

Details

Attachments

(2 files)

When a Heroku Review App is deleted the Pulse consumers are destroyred but the Pulse Guardian queues keep growing until they get deleted. Meanwhile we receive an email alerting us about it and another one when the queue is deleted.

We would like to auto-destroy the queues when there are no consumers left.
RabbitMQ supports a "TTL" [1] feature for queues that will automatically delete them when there are no consumers for a designated time.

[1] https://www.rabbitmq.com/ttl.html

Assignee: nobody → suyash546

I suggest you created your own account in https://pulseguardian.mozilla.org
Then try to build a PULSE_URL as explained in the documentation.
You can then run ./manage pulse_listener_tasks (follow docs to be sure I'm not misleading you) and then check https://pulseguardian.mozilla.org/queues. Then press Ctrl + C to stop the ingestion on your side. You will see the queues still exist in Pulse guardian.

The outcome we want is that once we're not ingesting the queues will auto-delete in Pulse guardian.

Fixed! Thanks Suyash!

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: