dragonfly/docs/en/cli-reference/scheduler.md

27 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Scheduler
Scheduler is a long-running process which receives and manages download tasks from the client, notify the CDN to return to the source,
generate and maintain a P2P network during the download process, and push suitable download nodes to the client
## Try it
```
go run cmd/scheduler/main.go [Option]
```
## Log configuration
set environment variable console=true if you want to print logs to Terminal
## Runtime metrics monitoring
```
go run cmd/scheduler/main.go --profiler
```
### Options
```
--config string the path of configuration file with yaml extension name, default is /Users/${USER_HOME}/.dragonfly/config/scheduler.yaml, it can
also be set by env var:SCHEDULER_CONFIGThe settings and uses of each configuration item can refer to scheduler.yaml in config directory
--console whether logger output records to the stdout
-h, --help help for cdn
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
--pprof-port int listen port for pprof, 0 represents random port (default -1)
--verbose whether logger use debug level
```