Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better LNL Bridge selection method #2984

Open
ProbablePrime opened this issue Sep 19, 2024 · 0 comments
Open

Better LNL Bridge selection method #2984

ProbablePrime opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
enhancement Suggested addition of a new feature.

Comments

@ProbablePrime
Copy link
Member

Is your feature request related to a problem? Please describe.

Currently, the LNL Bridge that Resonite uses is determined by which compatible bridge has the newest "timestamp" value from https://api.resonite.com/networkNodes

For example in this abbreviated api response:

"timestamp": "2024-09-19T22:19:28.5457312+00:00",
"name": "resonite-bridge-aus-1",
....
"timestamp": "2024-09-19T22:19:14.1119735+00:00",
"name": "resonite-bridge-eu-1",

Aus, will always be picked over EU, This is because its update cycle(when it reports back to the api), is slightly offset from Aus based on when it was restarted.

Timestamp is therefore not a good measure for the best Bridge, AUS might have the worst network performance but the fastest update and lead to it being picked all the time.

Describe the solution you'd like

I'd like the bridge selection to be based on ping like the Relays

Describe alternatives you've considered

At this point, there's really only one alternative which is that the server which is that each time the nodes are restarted, one node will end up "winning" based on restart time when the Updating loop starts.

Additional Context

No response

Requesters

Me

@ProbablePrime ProbablePrime added the enhancement Suggested addition of a new feature. label Sep 19, 2024
@ProbablePrime ProbablePrime self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Suggested addition of a new feature.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant