内容纲要
概要说明
本案例用于说明 Manager 的常见超时参数,以及修改方方式。主要包括以下几个常用的超时参数:
- 上传产品包超时
- 安装服务过程中拉取镜像超时
- 启动各个组件时操作超时
一般超时问题常出现在服务器磁盘、网络性能一般,导致上传过程超过了设置值
详细说明
Manager 启动参数相关的主要配置文件是 /etc/transwarp-manager/master/application.conf
,修改后需要重启 manager ,并重新执行之前的操作;
1、上传产品包超时
对应参数为 node.install
的 timeout
,可以尝试增加一倍;
node.install {
timeout = 60m
single-command-timeout = 10m
}
2、安装服务过程中拉取镜像超时
对应 harbor
的 image-operate-timeout
,可以尝试增加一倍;
harbor {
addr = "tcregistry.starcloud.io"
image-operate-timeout = 600000
}
3、启动各个组件时操作超时
对应参数为 operations
的 wait-healthy-timeout
,可以尝试增加一倍;
operations {
parallel-limit = 31
node.install {
timeout = 60m
single-command-timeout = 10m
}
service.config {
allow-empty-datadir = off
}
remote-start-timeout = 30s
task-default-timeout = 30m
wait-healthy-daemon-timeout = 3m
wait-healthy-timeout = 10m
task-log {
chunk-size = 132
queue-length = 100
flush-cycle = 1s
}