Skip to content

Commit

Permalink
docs: scheduler config (#698)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Sep 29, 2021
1 parent 3589f65 commit f8b61da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
2 changes: 2 additions & 0 deletions docs/en/config/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ server:
rest:
# stand address
addr: :8080
# front-end console resource path
# publicPath: /dist

# database info used for server
database:
Expand Down
16 changes: 5 additions & 11 deletions docs/en/config/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,17 @@ scheduler:
# server scheduler instance configuration
server:
# ip
ip:
# ip: 127.0.0.1
# host
host:
# host: localhost
# ListenPort is the ip and port scheduler server listens on.
# default: 8002
port: 8002

# dynamic data configuration
dynConfig:
# type
type:
# expireTime
expireTime:
# cdnDirPath
cdnDirPath:
# data
data: {}
# dynamic data source type
type: manager

# manager configuration
manager:
Expand Down Expand Up @@ -105,7 +99,7 @@ job:
# host
host: ""
# port
port:
port: 6379
# password
password: ""
# brokerDB
Expand Down
4 changes: 3 additions & 1 deletion docs/zh-CN/config/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ server:
rest:
# 标准的 rest 服务地址: ip:port, ip 不配置则默认为0.0.0.0
addr: :8080
# 前端控制台资源路径
# publicPath: /dist

# 数据库配置, 当前只支持 mysql 以及 redis
database:
Expand Down Expand Up @@ -42,4 +44,4 @@ cache:
# LFU 缓存大小
size: 10000
# ttl 配置,单位[纳秒]
ttl: 3000000000
ttl: 3000000000
22 changes: 7 additions & 15 deletions docs/zh-CN/config/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,17 @@ scheduler:
# server scheduler 服务实例配置信息
server:
# ip
ip:
# ip: 127.0.0.1
# host
host:
# host: localhost
# ListenPort is the ip and port scheduler server listens on.
# default: 8002
port:

# 动态数据配置
dynConfig:
# type 动态数据来源类型 manager 从远端manager读取 / local 从本地文件读取
# default: local
type: local
# expireTime 缓存的过期时间
# default 30s
expireTime: 30s
# cdnDirPath cdn 实例列表文件存放的目录
cdnDirPath:
# data 本地 CDN 动态配置
data: ""
# type 动态数据来源类型
type: manager

# manager 配置
manager:
Expand Down Expand Up @@ -106,7 +98,7 @@ job:
# host redis 服务实例地址
host: ""
# port redis 服务实例端口
port:
port: 6379
# password
password: ""
# brokerDB
Expand All @@ -132,8 +124,8 @@ pprofPort: -1

# jaeger 地址
# 默认使用空字符串(不配置 jaeger)
jaeger:
jaeger: ""

# tracer 中使用的 service-name
# 默认值:dragonfly-cdn
service-name: dragonfly-scheduler
service-name: dragonfly-scheduler

0 comments on commit f8b61da

Please sign in to comment.