Skip to content

Exit with error when orchestrator/transcoder has zero capabilities#3891

Open
Lazydayz137 wants to merge 1 commit intolivepeer:masterfrom
Lazydayz137:fix/2450-warn-zero-capabilities
Open

Exit with error when orchestrator/transcoder has zero capabilities#3891
Lazydayz137 wants to merge 1 commit intolivepeer:masterfrom
Lazydayz137:fix/2450-warn-zero-capabilities

Conversation

@Lazydayz137
Copy link
Copy Markdown

What does this pull request do?

Prevents O/T nodes from silently starting with zero transcoding capabilities, which makes them invisible to broadcasters.

Specific updates

  • Validate at least one capability was detected after capability assignment in StartLivepeer
  • Log actionable error and exit if zero capabilities detected for O/T nodes
  • Include hint when -nvidia is used with -testTranscoder=false

How did you test each of these updates?

  • go test ./cmd/livepeer/starter/... passes
  • go vet clean
  • gofmt clean

Does this pull request close any open issues?

Fixes #2450

Checklist

  • I have read the contribution guide
  • make and tests run successfully
  • Code is formatted with gofmt

When -nvidia flag is used with -testTranscoder=false, the node boots
with zero transcoding capabilities, making it invisible to broadcasters.
Previously this silently started a useless node with no warning.

Now the startup validates that at least one capability was detected for
orchestrator and transcoder nodes. If empty, it logs actionable guidance
(especially for the -nvidia + -testTranscoder=false combination) and
exits rather than running a node that will never receive work.

Fixes livepeer#2450

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the go Pull requests that update Go code label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

running -nvidia=0 with -testTranscoder=false results in an O with no capabilities

1 participant