Skip to content

Technical questions about horizontal scaling #2887

Discussion options

You must be logged in to vote

I found the answer when reading the new graphql documentation https://github.com/mozilla/reticulum/pull/399/files#diff-2ecdd4fbde0a5a21f68a9d0bbe630e0dR73-R74
So you indeed assign the same node to all participants of a room, great :-)
When you create a room you assign the host to the room https://github.com/mozilla/reticulum/blob/0cde188f38f6ac4677ae261da178f65e6ea5f72d/lib/ret/hub.ex#L89
You ensure that the host is not nil and is alive, otherwise you assign another host https://github.com/mozilla/reticulum/blob/0cde188f38f6ac4677ae261da178f65e6ea5f72d/lib/ret/hub.ex#L371-L385
The websocket returns this host https://github.com/mozilla/reticulum/blob/0cde188f38f6ac4677ae261da178f65e6ea5f72…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vincentfretin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants