Horizontal Pod Autoscaler is an API resource in the Kubernetes and used to horizontally scale number of kubernetes pods based on metrics values
Questions tagged [hpa]
223 questions
2
votes
1 answer
Horizontal pod autoscaling using a logging custom metric in GKE
I would like to scale my deployment based on a custom logging metric, but I'm not able to make that work, I created already the custom metric and I'm also able to see it in the metric explorer but for some reason the stackdriver adapter is not able…

Pablo Portillo
- 63
- 5
2
votes
1 answer
how is kubernetes cluster-autoscaler determining cpu utilization of nodes in EKS
I have a EKS cluster running with cluster-autoscaler version 1.21.2 deployed. When I did a kubectl top nodes, I found a node using 5% cpu and 21% memory utilised. But in cluster-autoscaler pod log, I see below message for the same node:
Node XXXX is…

Avanth Aditya
- 33
- 1
- 3
2
votes
1 answer
Kubernetes enabling or disabling Keda and HPA
Is there a 'master switch' to enable/disable Keda and HPA?
I can enable/disable scaling rules by editing the replicacount to 0, but is there a main enalbe/disable field?
cooldownPeriod: 1800
maxReplicaCount: 8
minReplicaCount: 2
…

Ahmad Masalha
- 379
- 2
- 9
2
votes
1 answer
Horizontal Pod Autoscaling Targets shows /50% with "kubectl get hpa"
Attempting to deploy autoscaling to my cluster, but the target shows "unknown", I have tried different metrics servers to no avail. I followed [this githhub issue](https"//github.com/kubernetes/minikube/issues4456/) even thought I'm using Kubeadm…

sintaxerror
- 31
- 1
- 3
2
votes
1 answer
How to track number of changes for Kubernetes HPA?
Concerning the Kubernetes Horizontal Autoscaler, are there any metrics related to the number of changes between certain time periods?

Hegemon
- 77
- 10
2
votes
2 answers
the server could not find the metric nginx_vts_server_requests_per_second for pods
I installed the kube-prometheus-0.9.0, and want to deploy a sample application on which to test the Prometheus metrics autoscaling, with the following resource manifest file: (hpa-prome-demo.yaml)
apiVersion: apps/v1
kind: Deployment
metadata:
…

Marco Mei
- 97
- 2
- 10
2
votes
1 answer
Gauge or Histogram - Which is a more suitable metric for determining load of a pod?
I'm completely new to Prometheus and trying to implement an HPA for a use case.
Our use-case is application/pod will be processing jobs from a queue asynchronously. Each pod will pull as many jobs as it can and once they have reached a limit it must…

Raghu
- 909
- 7
- 23
2
votes
1 answer
getting error while implementing metric server inside the Kubernetes
"Failed to scrape node" `
err="GET \"https://10.128.0.17:10250/stats/summary?
only_cpu_and_memory=true\": bad status code \"403 Forbidden\""
node="gke-zipydev-cluster-zipy-pool-b4bfa53a-t575"
I1215 10:33:03.405180 1 server.go:188] "Failed…

Nikhil Verma
- 21
- 1
- 2
2
votes
1 answer
Celery HPA - startupProbe failing after tasks are already running
I have Celery workers running on Kubernetes 1.20 cluster on AWS EKS using AWS Elasticache Redis as the broker. Because of the nature of the project ~80% of the time celery workers are running idle so the logical thing was to have them scale…

mislavcimpersak
- 2,880
- 1
- 27
- 30
2
votes
2 answers
can't get custom metrics for hpa from datadog
hey guys i’m trying to setup datadog as custom metric for my kubernetes hpa using the official guide:
https://docs.datadoghq.com/agent/cluster_agent/external_metrics/?tab=helm
running on EKS 1.18 & Datadog Cluster Agent (v1.10.0).
the problem is…

yishaihl
- 45
- 3
- 6
2
votes
1 answer
HPA scaling is triggered during Spring boot startup. Current CPU metric in HPA is high though CPU utilization at node level is low
We have a Spring Boot application on GKE with auto-scaling (HPA) enabled. During startup, HPA kicks in and start scaling the pods even though there is no traffic.
Result of 'kubectl get hpa' shows high current CPU average utilization while CPU…

Muktesh Arya
- 21
- 2
2
votes
0 answers
kubernetes HPA - Unauthorized has prevented the request from succeeding
I am trying to deploy HPA for my application but I have been getting the Unauthorized error
kubectl desribe hpa homekitchen:
Events:
Type Reason Age From Message
---- ------ …

Pranav
- 95
- 7
2
votes
1 answer
Kubernetes autoscaling : HPA not working with custom metrics for Java Netty API
I am setting up HPA on custom metrics - basically on no. of threads of a deployment.
I have created a PrometheusRule to get average of threads (5 min. based). On the container, I am doing cont. load to increase the threads and average value is also…

Sunil Agarwal
- 4,097
- 5
- 44
- 80
2
votes
1 answer
HPA on EKS-Fargate
this is not a question about how to implement HPA on a EKS cluster running Fargate pods... It´s about if it is necessary to implement HPA along with Fargate, because as far as I know, Fargate is a "serverless" solution from AWS: "Fargate allocates…

Will
- 111
- 10
2
votes
1 answer
How to use K8S HPA and autoscaler when Pods normally need low CPU but periodically scale
I am trying to determine a reliable setup to use with K8S to scale one of my deployments using an HPA and an autoscaler. I want to minimize the amount of resources overcommitted but allow it to scale up as needed.
I have a deployment that is…

Allen
- 3,134
- 5
- 29
- 49