How do I manage EC2 Auto Scaling Group settings in a DuploCloud EKS cluster?
Context When running an EKS cluster in DuploCloud, you may need to adjust the Auto Scaling Group (ASG) settings to optimize node scaling behavior, particularly when nodes are experiencing high resource utilization. Answer The management of EC2 Auto Scaling Groups in DuploCloud EKS clusters works through multiple components: Cluster Autoscaler : When enabled in DuploCloud, the cluster autoscaler automatically manages the EC2 nodes in your ASG based on pod requirements. It connects directly to the ASG and handles scaling up/down of EC2 instances. Horizontal Pod Autoscaling (HPA) : This can be configured in your Kubernetes deployment through DuploCloud to control pod scaling based on resource metrics. While this primarily affects pod scaling, it indirectly influences node scaling through the cluster autoscaler. ASG Metrics-Based Scaling : For direct control of EC2 scaling based on instance metrics (such as CPU or memory utilization), you'll need to configure this directly in AWS or through AWS-native Terraform. DuploCloud currently does not expose ASG metric-based autoscaling configuration. For fine-tuned control over node scaling based on EC2 metrics, you should: Access your ASG configuration directly in the AWS Console or via Terraform Configure scaling policies following the AWS documentation for ASG scaling policies Note: While HPA settings can influence node scaling, they may not address scenarios where multiple pods within their resource limits collectively consume most of a node's resources. In such cases, direct ASG metric-based scaling configured in AWS may be more appropriate.
Last updated
Was this helpful?

