Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Organization of document is as following:
* [WIP dfget](cli-reference/dfget.md)
* [WIP cdnsystem](cli-reference/cdn.md)
* [WIP scheduler](cli-reference/scheduler.md)
* [TODO manager](cli-reference/manager.md)
* [WIP manager](cli-reference/manager.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove WIP

* [TODO API Reference](#API-Reference)
* [Ecosystem](#Ecosystem)
* [Kubernetes Integration](ecosystem/Kubernetes-with-Dragonfly.md)
Expand Down
41 changes: 31 additions & 10 deletions docs/en/cli-reference/manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,41 @@ go run cmd/manager/main.go [Option]
```

## Log configuration
set environment variable console=local if you want to print logs to Terminal
```
1. set environment variable console=local if you want to print logs to Terminal
2. log path: /var/log/dragonfly/manager/
```

## Runtime metrics monitoring
```
go run cmd/scheduler/main.go --profiler
go run cmd/manager/main.go --pprof-port port
```

## Swagger support
endpoint: /swagger/doc.json

## Prometheus metrics monitoring
endpoint: /metrics

## HealthCheck
endpoint: /healthy/


## Enable jaeger
```
go run cmd/manager/main.go --jaeger http://localhost:14250/api/traces
```
### Options

## 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_CONFIG,The 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
--config string the path of configuration file with yaml extension name, default is /etc/dragonfly/manager.yaml, it can also be set by env var: MANAGER_CONFIG
--console whether logger output records to the stdout
-h, --help help for manager
--jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces
--pprof-port int listen port for pprof, 0 represents random port (default -1)
--service-name string name of the service for tracer (default "dragonfly-manager")
--verbose whether logger use debug level
```
## Config file
[manger config](../config/manager.yaml)