41 lines
785 B
YAML
41 lines
785 B
YAML
# 调度中心配置
|
|
|
|
server:
|
|
host: "0.0.0.0"
|
|
port: 8080
|
|
mode: "debug" # debug, release
|
|
|
|
socks5:
|
|
host: "0.0.0.0"
|
|
port: 1080
|
|
max_connections: 10000
|
|
timeout: 30 # 秒
|
|
|
|
database:
|
|
host: "localhost"
|
|
port: 5432
|
|
user: "postgres"
|
|
password: "postgres"
|
|
database: "proxy_platform"
|
|
sslmode: "disable"
|
|
|
|
redis:
|
|
host: "localhost"
|
|
port: 6379
|
|
password: ""
|
|
db: 0
|
|
|
|
scheduler:
|
|
# 负载均衡策略
|
|
strategy: "least_latency" # least_latency, least_connections, weighted_round_robin
|
|
# 健康检查间隔
|
|
health_check_interval: 10 # 秒
|
|
# 解锁检测间隔
|
|
unlock_check_interval: 300 # 秒
|
|
# 节点超时阈值
|
|
node_timeout: 30 # 秒
|
|
|
|
logging:
|
|
level: "info" # debug, info, warn, error
|
|
output: "stdout" # stdout, file
|
|
file: "logs/scheduler.log" |