How to Find Out Exactly How Much You Can Save with Spot Instances
Tags: cloud, spot, kubernetes, devops
Published: 2022-03-28 10:53:25

<!-- wp:paragraph -->
<p>Searching for massive cloud cost savings? Then you’re probably well aware of spot instances (or preemptible instances as Google Cloud calls them). At least on paper, they can save you up to 90% of what an on-demand instance would cost.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You’re probably just as aware of the catch here, i.e., that providers can reclaim them on notice as short as 30 seconds. No one can judge if you decide not to use them for production workloads.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Yet if the 90% savings are too tempting to give up on, there are a few things that can help:</p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true} -->
<ol><li><strong>The CAST AI Savings Report</strong> can show you the workloads in your cluster that are good candidates for running on spot instances. It’s 100% free to use.</li><li><strong>Spot instance automation</strong> can automatically replace expired instances and find new ones to run your workloads on.</li></ol>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Read on to learn how much exactly you can save in different cloud optimization scenarios.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="1-portability">Not all workloads are created equal</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Spot instances aren’t the right choice for every workload, which scares some teams off from using them on a large scale.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>However, the good news is that a vast range of workloads can effectively run on this type of instances, especially with the help of automation.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Stateless services with more than one replica are a good candidate for this type of instances – and this is becoming a standard in modern architectures based on Kubernetes.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong><span style="text-decoration: underline" class="underline">Examples of spot-friendly workloads include:</span></strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Batch processing jobs;</li><li>Containers and microservices;</li><li>High-Performance Computing (HPC);&nbsp;</li><li>CI/CD operations;&nbsp;</li><li>Distributed databases;</li><li>Any apps in an orchestrated environment.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>If in doubt, automation tools can identify and flag workloads ready for spot. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You can also do it manually following the instructions in our spot-readiness cheat sheet:</p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"align":"center"} -->
<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="#spot-readiness-cheatsheet">Download my cheat sheet</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="2-networking-limitations">What else can spot instance automation do for you?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Identifying spot-friendly workloads is one important thing, but automation can do so much more for your cluster.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In a nutshell, it solves all the challenges you encounter when moving workloads to spot.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>That process usually involves these main steps:</p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true} -->
<ol><li><strong>Qualify your workloads</strong> and assess how well they can handle potential interruptions.</li><li><strong>Examine the offer</strong> and help you find less popular instances that have a lower frequency of interruptions.</li><li><strong>Make your bid</strong> and match the marketplace price.</li><li><strong>Manage spot instances in groups</strong> and request multiple instance types at once to increase your chances of securing a spot.</li><li><strong>Move your workloads to other nodes when needed</strong> to ensure that they run continuously no matter what.</li></ol>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Spot instance configuration, setup, and maintenance require time and work, but a good cloud automation platform can handle all these for you. It can also <a href="https://docs.cast.ai/guides/spot/#spotpreemptible-instances-fallback" target="_blank" rel="noreferrer noopener">support the fallback</a> of spot to on-demand nodes if there are shortages in the marketplace.&nbsp;&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Once you set up your policies, specifying, for example, a default cluster-wide reliability value,&nbsp;CAST AI will move your workloads gracefully and minimize their interruptions.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It may sound like a black box, but an automation solution still gives you control over your setup. For example, CAST AI lets you define policies based on which the platform will monitor and scale your cluster to maintain steady performance at the lowest possible cost.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In the case of spot instances, it is up to you to decide how many, if any, of your workloads should use them. You can also set the preference for spot but move to on-demand instances when needed.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="3-namespaces">See precisely how much you can save</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In theory, including spot in your cloud cost optimization strategy can cut your bill even by 90%.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>But if you wonder how much exactly you can save with your specific cluster configuration, our free Savings Report is the best place to start.</p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"align":"center"} -->
<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://console.cast.ai/?screen_hint=SIGNUP">Get my free Savings Report</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:paragraph -->
<p>In less than 5 minutes, you can scan your Kubernetes clusters and get specific optimization recommendations that include different options.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The best part is that if you’re happy with the ideas you see, you can implement them automatically – and here’s <a href="https://cast.ai/blog/how-to-reduce-your-amazon-eks-costs-by-half-in-15-minutes/" target="_blank" rel="noreferrer noopener">a short guide</a> on how to do it.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":7564,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cast.ai/wp-content/uploads/2022/03/screenshot_blurred-1200x600.png" alt="Spot Instances in the Savings Report" class="wp-image-7564"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
<h3 id="4-no-configuration-flexibility">So how does it work?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>CAST AI uses a prediction model to calculate precisely how much you can save in different scenarios.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Unlike other cloud optimization solutions, CAST AI doesn't push you to follow any particular approach to generating savings. This is because we don't bill you on the number of workloads on spot instances or the reserved capacity buys recommended to you.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Spot instance automation, autoscaling, rightsizing, bin packing, and cluster scheduling all work hand in hand in CAST AI to get the best results for your cluster.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>So when it comes to assessing the impact of spot automation on your expenses, your Savings Report gives you precise predictions for when you use:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>no spot instances at all;</li><li>a mix of spot and on-demand instances;</li><li>spot instances for all workloads.&nbsp;</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Equipped with the exact calculations for your individual case, your team can make more informed decisions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You may not be 100% sold on the idea of using spot right now, and that’s fine. There are many situations where they can pose risks of interrupting your workloads.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>However, seeing how much you can save depending on the number of workloads you move to spot can help you better assess your options and plan for the future.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>And remember that with cloud optimization platforms like CAST AI, you can automate spot interruption handling to the extent that your workloads stay up at all times.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Check how much you can save with spot instances.</p>
<!-- /wp:paragraph -->

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