Release Notes
Announcements
Release Notes
ScaledObject.apiVersion: keda.sh/v1alpha1kind: ScaledObjectmetadata:name: seckillspec:scaleTargetRef:apiVersion: apps/v1kind: Deploymentname: seckillpollingInterval: 15minReplicaCount: 2 # Keep at least 2 replicasmaxReplicaCount: 1000advanced:horizontalPodAutoscalerConfig:behavior: # Control scaling behavior by using a conservative approach of quick scaling out and slow scaling inscaleDown: # Slow scaling in: A period of at least 10 minutes is required before scaling instabilizationWindowSeconds: 600policies:- type: Percentvalue: 100periodSeconds: 15scaleUp: # Quick scaling out: Allow scaling out up to 5 times every 15spolicies:- type: Percentvalue: 500periodSeconds: 15triggers:- type: cron # Ensure at least 200 replicas within half an hour before and after the flash sales activity every morning at 10 ammetadata:timezone: Asia/Shanghaistart: 30 9 * * *end: 30 10 * * *desiredReplicas: "200"- type: cron # Ensure at least 200 replicas within half an hour before and after the flash sales activity every evening at 6 pmmetadata:timezone: Asia/Shanghaistart: 30 17 * * *end: 30 18 * * *desiredReplicas: "200"- type: memory # Scale up when the CPU utilization exceeds 60%metricType: Utilizationmetadata:value: "60"- type: cpu # Scale up when the memory utilization exceeds 60%metricType: Utilizationmetadata:value: "60"
minReplicaCount.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários