From a4b85e0e527bd57feabf0095e594d2adcc93a7ee Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Thu, 23 Apr 2026 01:37:09 +0000 Subject: [PATCH] update keda --- apps/base/customer1/openclaw/keda-vllm.yaml | 34 ++++++++++++++------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/apps/base/customer1/openclaw/keda-vllm.yaml b/apps/base/customer1/openclaw/keda-vllm.yaml index 32f38ac..2bd1482 100644 --- a/apps/base/customer1/openclaw/keda-vllm.yaml +++ b/apps/base/customer1/openclaw/keda-vllm.yaml @@ -4,16 +4,28 @@ metadata: name: openclaw-brain-a100-scaling namespace: customer1 spec: + # The hostname(s) the interceptor should match and route + hosts: + - openclaw-brain-service.customer1.svc.cluster.local # or your external domain if using Ingress + # - "*.customer1.svc.cluster.local" # optional wildcard + + # What to scale scaleTargetRef: - name: openclaw-brain-vllm + name: openclaw-brain-vllm # your Deployment name kind: Deployment - minReplicaCount: 0 - maxReplicaCount: 1 - cooldownPeriod: 900 # 15 minutes idle before scale-down - pollingInterval: 30 - triggers: - - type: http - metadata: - path: "/v1/" - host: "openclaw-brain-service.customer1.svc.cluster.local" - requestCount: "1" # Scale up on 1+ request (wake script handles cold start) + apiVersion: apps/v1 + + # The Service the interceptor will forward traffic to + service: + name: openclaw-brain-service # adjust if your Service name is different + port: 80 # or 8080 / whatever port your container listens on + + # Replica settings (enables scale-to-zero) + replicas: + min: 0 + max: 1 + + # Scaling behavior – choose ONE of the two options below: + + # Option 1: Scale based on concurrent/pending requests (simplest, good for cold-start wake-up) + targetPendingRequests: 1 # wake up on any incoming request