cancel
Showing results for 
Search instead for 
Did you mean: 
Chetan_Tiwary_
Community Manager
Community Manager
  • 181 Views

Explain Openshift resource manifest

Explain this openshift resource manifest

 

apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
  name: hpa-resource-metrics-memory
  namespace: default
spec:
...
  minReplicas: 20
...
  behavior:
    scaleDown:
      stabilizationWindowSeconds: 300
      policies:
      - type: Pods
        value: 4
        periodSeconds: 30
      - type: Percent
        value: 10
        periodSeconds: 60
      selectPolicy: Max
    scaleUp:
      selectPolicy: Disabled
Labels (4)
Tags (1)
2 Replies
Kent-Kamau
Mission Specialist
Mission Specialist
  • 19 Views

The provided resource manifest is for a HorizontalPodAutoscaler (HPA) which automatically scales the number of pods in a deployment or replica set based on observed resource usage or other metrics.

This HorizontalPodAutoscaler is set to:

  1. Minimum Replicas: Always maintain at least 20 pods.
  2. Scale Down Behavior: After scaling down, wait for 5 minutes before considering another scale-down event.
  3. Limit scale-down actions to a maximum of 4 pods within 30 seconds or 10% of the total pods within 60 seconds, whichever is greater.
  4. The Max scaling policy ensures that the largest scale-down value will be applied.
  5. Scale Up Behavior: Scaling up is disabled for this HPA, meaning no new pods will be added even if resource usage increases.
0 Kudos
  • 17 Views

This configuration helps manage the number of replicas in response to changing workload demands while preventing rapid scaling oscillations.
Minimum 20 replicas running, scalling down is gradually with 10% cut down every minute or 4 pods every 30 seconds, which ever is bigger.
Scaling up targeting utilization without specific policy. 

0 Kudos
Join the discussion
You must log in to join this conversation.