diff --git a/run_monitor.sh b/run_monitor.sh index 7b50bdf..808e850 100755 --- a/run_monitor.sh +++ b/run_monitor.sh @@ -13,7 +13,7 @@ SCRIPT_NAME="fastAPI_tarot.py" # Python 启动脚本 LOG_FILE="${PROJECT_DIR}/log/monitor.log" # 监控日志文件 APP_LOG_FILE="${PROJECT_DIR}/log/app.log" # 应用输出日志文件 PORT=55600 # 服务端口 -CHECK_INTERVAL=5 # 检查间隔(秒) +CHECK_INTERVAL=20 # 检查间隔(秒) MAX_FAILURES=3 # 最大连续失败次数,超过则重启 STARTUP_TIMEOUT=300 # 启动超时时间(秒),等待模型加载 PYTHON_CMD="python" # Python 命令,根据环境可能是 python3