kubernetes-hpa

HPA using Kafka Exporter in on premise Kubernetes cluster

喜欢而已 提交于 2019-12-11 05:54:22
问题 I had been trying to implement Kubernetes HPA using Metrics from Kafka-exporter. Hpa supports Prometheus, so we tried writing the metrics to prometheus instance. From there, we are unclear on the steps to do. Is there an article where it will explain in details ? I followed https://medium.com/google-cloud/kubernetes-hpa-autoscaling-with-kafka-metrics-88a671497f07 for same in GCP and we used stack driver, and the implementation worked like a charm. But, we are struggling in on-premise setup,

How does pod replica scaling down work in Kubernetes Horizontal Pod Autoscaler?

孤者浪人 提交于 2019-12-09 06:00:47
问题 My understanding is that in Kubernetes, when using the Horizontal Pod Autoscaler, if the targetCPUUtilizationPercentage field is set to 50%, and the average CPU utilization across all the pod's replicas is above that value, the HPA will create more replicas. Once the average CPU drops below 50% for some time, it will lower the number of replicas. Here is the part that I am not sure about: What if the CPU utilization on a pod is 10%, not 0%?Will HPA still terminate the replica? 10% CPU isn't

How does pod replica scaling down work in Kubernetes Horizontal Pod Autoscaler?

前提是你 提交于 2019-12-03 14:10:26
My understanding is that in Kubernetes, when using the Horizontal Pod Autoscaler, if the targetCPUUtilizationPercentage field is set to 50%, and the average CPU utilization across all the pod's replicas is above that value, the HPA will create more replicas. Once the average CPU drops below 50% for some time, it will lower the number of replicas. Here is the part that I am not sure about: What if the CPU utilization on a pod is 10%, not 0%?Will HPA still terminate the replica? 10% CPU isn't much, but since it's not 0%, some task is currently running on that pod. If it's a long lasting task