Page MenuHomePhabricator

[tunnelbroker] Implement AMQP Channel hash-modulo-N pool
Changes PlannedPublic

Authored by bartek on Thu, Oct 3, 1:35 PM.
Tags
None
Referenced Files
F2888824: D13602.id44882.diff
Fri, Oct 4, 5:47 AM
F2888791: D13602.id.diff
Fri, Oct 4, 5:46 AM
F2888764: D13602.diff
Fri, Oct 4, 5:45 AM
Subscribers

Details

Reviewers
kamil
varun
will
Summary

A deterministic distribution of channel number based on name/net address/device ID, basically anything that is hashable

Depends on D13601

Test Plan

Confirmed that the same device ID will always receive the same channel index

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.Fri, Oct 4, 3:46 AM
bartek edited the summary of this revision. (Show Details)
bartek edited the test plan for this revision. (Show Details)

It turns out that multiple devices using the same channel cause conflicts, for now I'll resign from channel pool and simply create a new channel on access.
Old channels will be dropped automatically (they implement Drop)