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

long reconnect times #217

Open
iameli opened this issue Oct 20, 2022 · 0 comments
Open

long reconnect times #217

iameli opened this issue Oct 20, 2022 · 0 comments

Comments

@iameli
Copy link
Contributor

iameli commented Oct 20, 2022

With catalyst multi-node, disconnecting an RTMP stream takes a long time afterward. This happens because incoming connections check against the load balancer, notice that the stream already exists, and exit.

What we should do instead:

  • When PUSH_REWRITE fires, we attach a random id to the incoming stream. Stream abc123 gets rewritten to e.g. video+abc123-ffffff.
  • Catalyst cluster members publish their current streams into the kappa state.
  • When nodes want to handle playback, they query that kappa state, discover which stream has the address at which region, and victory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant