Skip to content

Commit

Permalink
Allow running Orchestrator in External Container mode (#3196)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko authored Oct 3, 2024
1 parent de885a2 commit f2e1832
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/livepeer/starter/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,12 @@ func StartLivepeer(ctx context.Context, cfg LivepeerConfig) {
// if http addr is not provided, listen to all ifaces
// take the port to listen to from the service URI
*cfg.HttpAddr = defaultAddr(*cfg.HttpAddr, "", n.GetServiceURI().Port())
if !*cfg.Transcoder && n.OrchSecret == "" {
glog.Exit("Running an orchestrator requires an -orchSecret for standalone mode or -transcoder for orchestrator+transcoder mode")
if !*cfg.Transcoder && !*cfg.AIWorker {
if *cfg.AIModels != "" && n.OrchSecret == "" {
glog.Info("Running an orchestrator in AI External Container mode")
} else {
glog.Exit("Running an orchestrator requires an -orchSecret for standalone mode or -transcoder for orchestrator+transcoder mode")
}
}
} else if n.NodeType == core.TranscoderNode {
*cfg.CliAddr = defaultAddr(*cfg.CliAddr, "127.0.0.1", TranscoderCliPort)
Expand Down

0 comments on commit f2e1832

Please sign in to comment.