implement a proper relay v2 search strategy #9257
Labels
effort/days
Estimated to take multiple days, but less than a week
exp/wizard
Extensive knowledge (implications, ramifications) required
kind/enhancement
A net-new feature or improvement to an existing feature
P3
Low: Not priority right now
topic/libp2p
Topic libp2p
Description
Our current relay search is pretty bad.
It just constantly poll our K cluster with some exp-backoff.
The goal of this is to avoid convergence on a few nodes and spread the relaying load more or less evenly on all reachable dhtservers.
However the actual strategy we were supposed to implement is an outward search until success. If no nodes in our K cluster support relaying, it probably will never change.
Maybe a random polling of the DHT is not that bad after all ?
API
Currently this is implemented with a long running task, this would need to be rewriten to be statefull and executing in the libp2p callback.
The text was updated successfully, but these errors were encountered: