Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c6734a48d9 |
31
inference-scaled-config/sapphire3/httpscaledobject.yaml
Normal file
31
inference-scaled-config/sapphire3/httpscaledobject.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: http.keda.sh/v1alpha1
|
||||||
|
kind: HTTPScaledObject
|
||||||
|
metadata:
|
||||||
|
name: sapphire3-http-scaler
|
||||||
|
namespace: bj1-dcloud
|
||||||
|
spec:
|
||||||
|
hosts:
|
||||||
|
- annomidware.d-robotics.cc
|
||||||
|
pathPrefixes:
|
||||||
|
- /segmentation/sapphire3/v1/predict
|
||||||
|
|
||||||
|
# 目标 Deployment 及其对应的后端 Service
|
||||||
|
scaleTargetRef:
|
||||||
|
name: sapphire3
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
service: sapphire3-svc
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
# 常驻 1 个副本,关闭缩容到 0,避免冷启动
|
||||||
|
replicas:
|
||||||
|
min: 1
|
||||||
|
max: 1
|
||||||
|
|
||||||
|
# 与现有 segment-http-scaler 保持一致
|
||||||
|
scalingMetric:
|
||||||
|
concurrency:
|
||||||
|
targetValue: 3
|
||||||
|
|
||||||
|
scaledownPeriod: 300
|
||||||
|
targetPendingRequests: 8
|
||||||
Loading…
x
Reference in New Issue
Block a user