PROFESSIONAL-CLOUD-ARCHITECT · Question #48
You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load. What should you do?
The correct answer is A. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler. How does Horizontal Pod Autoscaler work with Cluster Autoscaler? Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough…
Question
Options
- AConfigure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler
- BConfigure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the
- CCreate a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster
- DCreate a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling
How the community answered
(52 responses)- A94% (49)
- B4% (2)
- D2% (1)
Explanation
How does Horizontal Pod Autoscaler work with Cluster Autoscaler? Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough space in the cluster. If there are not enough resources, CA will try to bring up some nodes, so that the HPA-created pods have a place to run. If the load decreases, HPA will stop some of the replicas. As a result, some nodes may become underutilized or completely empty, and then CA will terminate such unneeded nodes.
Topics
Community Discussion
No community discussion yet for this question.