livepeer / livepeer/catalyst-api

Upstream Catalyst load balancing

Open
#958 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Serf integration, catalyst-api startup path, and MistUtilLoad process handling described in the issue. Trace how stream information is currently collected and routed; done means nodes publish current stream state through the Serf cluster, cache the global view locally, and route playback without the child MistUtilLoad process.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.