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

Upstream Catalyst load balancing #958

Open
iameli opened this issue Nov 7, 2023 · 0 comments
Open

Upstream Catalyst load balancing #958

iameli opened this issue Nov 7, 2023 · 0 comments

Comments

@iameli
Copy link
Member

iameli commented Nov 7, 2023

Upstreaming Catalyst Load Balancer

How it works right now

  • There is a Serf cluster
  • Every catalyst-api boots up a child MistUtilLoad process
  • This MistUtilLoad process is fed up-to-date information about the current servers in the cluster
  • Every five seconds, this MistUtilLoad process queries metrics from every Catalyst node in the cluster
  • This data is cached locally, giving each node a global view of the current stream state
  • When a user stream comes in, MistUtilLoad is queried to make intelligent decisions about playback routing
image

How it should work

  • There is a Serf cluster
  • Every catalyst-api boots up a child MistUtilLoad process
  • This MistUtilLoad process is fed up-to-date information about the current servers in the cluster
  • Every five seconds, this MistUtilLoad process queries metrics from every Catalyst node in the cluster pushes its current stream information into the Serf cluster; nodes forward this information so it reaches every node
  • This data is cached locally, giving each node a global view of the current stream state
  • When a user stream comes in, MistUtilLoad is queried to make intelligent decisions about playback routing are made based on this cached information
image
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