Menu

HPA: CPU is a share of request
📰

HPA: CPU is a share of request

DEV Community: kubernetes·Aditya gupta·about 6 hours ago
#geUWqa71
Long article (260 words) — no AI summary yet.
Reading 0:00
15s threshold

This story was written with the assistance of an AI writing program.

CPU-utilization targets need requests.

Your pods are busy and the HPA still does nothing. If you scale on CPU utilization, the first thing to check: it is not reading node CPU.

With a CPU utilization target, the HorizontalPodAutoscaler scales on each pod's usage as a percentage of its CPU request. The decision rule: utilization = usage / request, averaged across the pods, compared to your target.

Every 15 seconds (default sync period) the controller reads pod metrics from the resource metrics API, usually metrics-server, and computes the mean utilization.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.