Closed Bug 952266 Opened 11 years ago Closed 10 years ago

Use a different AMQP backend than amqplib

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

References

Details

Attachments

(1 file, 2 obsolete files)

Carrot is deprecated in favor of Kombu, but let's keep carrot for the moment at least.

It claims to support pika, which is used in socorro, so it might be OK.  https://github.com/tonyg/pika
Source inspection demonstrates that pika supports heartbeats.  It also supports reconnections.
Blocks: 951558
Carrot doesn't make it easy to pass config options to Pika, though.  I'm going to look into monkeypatching it to do so.
We should switch to a different library, but it's less urgent now.
No longer blocks: 951558
I have a patch to use Kombu mostly ready - just needs some dusting-off.
Blocks: 863268
Attached patch use-kombu.patch (obsolete) — Splinter Review
Attachment #8356879 - Flags: review?
Attachment #8356879 - Flags: review? → review?(catlee)
BTW, this changes both the agent and the web components, but does not change the message format, names, etc.  So the components can be upgraded independently.
Hmm, the heartbeat stuff appears not to work - I awoke this morning to find the selfserve-agent reconnecting every second.
Attached patch use-kombu-r2.patch (obsolete) — Splinter Review
There are still some keepalive issues with kombu and py-amqp, but this fixes the problems in buildapi, at least.  Amusingly, the previous version of this patched essentially opened a unique TCP connection to send heartbeats on.  Not that useful!
Attachment #8356879 - Attachment is obsolete: true
Attachment #8356879 - Flags: review?(catlee)
Attachment #8357320 - Flags: review?(catlee)
My fixes for the keepalive issues have been merged, so once we upgrade to the next released versions, we should see improved behavior there.
I had missed some last-minute updates to test_build.py.  The production code remains the same.
Attachment #8357320 - Attachment is obsolete: true
Attachment #8357320 - Flags: review?(catlee)
Attachment #8361825 - Flags: review?(bhearsum)
Comment on attachment 8361825 [details] [diff] [review]
use-kombu-r3.patch

Review of attachment 8361825 [details] [diff] [review]:
-----------------------------------------------------------------

This is somewhat a rubberstamp, but r+. Let's not deploy it today though?
Attachment #8361825 - Flags: review?(bhearsum) → review+
landed, but with automatic updating on buildapi01 already disabled (so no immediate impact)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: