Are Node Pools Sabotaging Your Cost Optimization Efforts?
Tags: cloud, kubernetes, devops
Published: 2022-09-02 11:41:00

<!-- wp:paragraph -->
<p>AWS recommends running highly available EKS clusters with worker nodes in node pools (Auto Scaling groups) that are spread across multiple Availability Zones or Regions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This choice sure makes sense in terms of reliability. But does it help to optimize Kubernetes clusters for cost?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Our experience shows that using node pools leads to sub-optimal utilization in some cases and so generates significant cloud waste and high cloud expenses.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-what-is-an-auto-scaling-group-anyway">What is an Auto Scaling group anyway?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In our context, a node pool is essentially an Auto Scaling group. It consists of EC2 instances AWS treats as a logical grouping for automated scaling and management. It allows you to benefit from EC2 Auto Scaling features like health check replacements and scaling policies.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Auto Scaling groups help to dynamically increase or decrease the number of instances in the group to address changing conditions and provide your workloads with just enough resources to run smoothly.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If a scaling policy is enabled, the Auto Scaling group adjusts the desired capacity of the group between the specified minimum and maximum capacity values. It also launches or terminates the instances as needed, also enabling you to scale on a schedule.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Sounds great, doesn’t it? Here’s the caveat.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-here-s-the-issue-with-node-pools">Here’s the issue with node pools</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Looking to adjust their resources to changing demand and optimize their usage, our customers often turned to this tactic and created node pools.</p>
<!-- /wp:paragraph -->

<!-- wp:quote {"className":"is-style-plain"} -->
<blockquote class="wp-block-quote is-style-plain"><!-- wp:paragraph -->
<p>But here’s the issue: these node pools were only partially full. A team could easily end up with a collection of nodes containing more capacity than needed. The company would pay for resources that were effectively not being used.</p>
<!-- /wp:paragraph --></blockquote>
<!-- /wp:quote -->

<!-- wp:heading -->
<h2 id="h-cost-efficient-alternative-single-node-pool-with-maximum-utilization">Cost-efficient alternative: single node pool with maximum utilization</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Implementing a “no node pools” approach is more beneficial because it allows teams to avoid the mounting costs of cloud resources. Instead of keeping a set of partially full nodes, you get a single node pool where all the nodes are completely full, leaving no room for cloud waste.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":11709,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2022/07/Node-Pools-Graph-new.png" alt="" class="wp-image-11709"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>But keeping an eye on your node pool and making sure that utilized and requested capacity match requires a lot of engineer time.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>That’s why this method is such a great use case for automation.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-automating-the-no-node-pools-approach">Automating the no node pools approach</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>CAST AI creates a single node pool that is completely full, ensuring high resource utilization and eliminating any cloud waste. It constantly analyzes your application demands and adjusts the available capacity in real time by deleting nodes and moving workloads around to minimize waste.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Want to check what your node layout looks like vs. what it could look like for greater optimization?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Get a free savings report to check how much a “no node pools” would save you.</p>
<!-- /wp:paragraph -->

<!-- wp:block {"ref":7608} /-->