livepeer / livepeer/studio

Calculate storage used for each stream

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
88
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Problem
We don't have data for amount of storage used by stream.

Solution
Create API endpoint (called by cron job) that will go through all the streams with recording enabled, calculate storage used per session and write this data to the db into the 'stream' object.

Contributor guide

Open the contributing guide

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 with the API endpoint and cron-job entry points responsible for stream processing, then trace how recording-enabled streams, sessions, and the stream object are represented in the database. Done means storage used is calculated per session for every eligible stream and the resulting data is written to the stream object.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.