AI Application Dependency on AI Pod Service Status Monitoring
Starting with LCMD 1.3.8, use upstreams to access the health check endpoint on the AI Pod, as shown below:
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