AI 应用依赖算力舱服务的状态检测
在微服系统 1.3.8 之后,可以使用 upstreams 的特性去访问算力舱中的 health check 接口。如下所示
yml
name: ComfyUI
package: cloud.lazycat.aipod.comfyui
version: 0.2.0
description: ComfyUI is a web UI for AI Art.
license: https://choosealicense.com/licenses/mit/
homepage:
author:
application:
subdomain: comfyui
gpu_accel: true
routes:
- /=file:///lzcapp/pkg/content/dist
health_check:
test_url: http://127.0.0.1/version
start_period: 5m
upstreams:
- location: /version
backend: https://comfyui-ai.{{ .S.BoxDomain }}/api/manager/version
trim_url_suffix: /
use_backend_host: true
dump_http_headers_when_5xx: true