Google Cloud has released CPU startup boost for Google Kubernetes Engine (GKE) in preview, a feature that temporarily raises a container's CPU while it starts. Google Cloud says the extra CPU returns to normal levels once the application is ready, and containers do not restart.
Applications often need far more CPU during startup than during normal running, Google Cloud says. Java, Node.js and Python services spend that early time loading code and libraries. If CPU is sized only for normal use, startup is throttled, which can cause slow starts and failed readiness checks, the tests Kubernetes uses to decide whether a pod can receive traffic. Teams that avoid this by requesting extra CPU permanently pay for capacity that sits idle later.
The feature is built into GKE's Vertical Pod Autoscaler, which adjusts the resources given to pods. Google Cloud says it can cut application initialization times by up to 2x. Administrators can apply a pod-wide multiplier, such as double the CPU during startup, or set rules for individual containers in multi-container pods.
It relies on Kubernetes In-place Pod Resize, which changes a running pod's resources without deleting and recreating it. That capability reached Beta in Kubernetes 1.33 and is set to become generally available in 1.35.
Source: Google Cloud announcement.