Page MenuHomePhabricator

[tunnelbroker] Add exponential backoff to AMQP connection
ClosedPublic

Authored by bartek on Oct 3 2024, 8:42 AM.
Tags
None
Referenced Files
F3363697: D13594.id44930.diff
Mon, Nov 25, 3:02 AM
Unknown Object (File)
Sat, Nov 23, 3:53 AM
Unknown Object (File)
Fri, Nov 22, 12:00 AM
Unknown Object (File)
Thu, Nov 21, 5:43 PM
Unknown Object (File)
Sun, Nov 10, 12:50 PM
Unknown Object (File)
Sun, Nov 10, 11:43 AM
Unknown Object (File)
Fri, Nov 8, 10:37 PM
Unknown Object (File)
Fri, Nov 8, 1:49 PM
Subscribers

Details

Summary

Added connection retries for AMQP. This only works on Tunnelbroker startup, it doesn't fix our logic yet for disconnects while TB is already running

Depends on D13593

Test Plan

Started Tunnelbroker, but waited with starting RabbitMQ. After running Rabbit, the connection was established after a few attempts

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Oct 3 2024, 9:01 AM
bartek added inline comments.
services/tunnelbroker/src/amqp.rs
32–36

I chose this experimentally basing on how long local rabbitmq gets up, but we might want to add more retries.

56

I made it this way because this function is going to be split in the next diffs

This revision is now accepted and ready to land.Oct 7 2024, 1:34 AM