Page MenuHomePhabricator

[tunnelbroker] Add exponential backoff to AMQP connection
ClosedPublic

Authored by bartek on Oct 3 2024, 8:42 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Sat, Nov 2, 8:24 AM
Unknown Object (File)
Tue, Oct 29, 9:12 PM
Unknown Object (File)
Tue, Oct 29, 6:26 PM
Unknown Object (File)
Mon, Oct 28, 4:18 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