You may have seen that AWS and Red Hat have now integrated using Spot Instances into the ROSA worker plane. This is a fantastic extension of ROSA functionality and offers great flexibility to customers when architecting their service deployments on the ROSA service. It goes beyond the standard EC2 worker nodes that ROSA has always offered.

The Spot markets came about because the hyperscale cloud providers cannot offer their standard services without commissioning a large amount of spare capacity into their infrastructures to provide resources to cope with the vagaries of customer demand that become a burden of unproductive investment.  

To counter this issue and monetize this resource pool, AWS started offering their spare capacity in a Spot marketplace in late 2009.

The marketplace allows customers to bid for Spot instances at remarkable cost savings, in some cases upto 90% of the EC2 cost. But the opportunity does come with a health warning, because if AWS needs to take those resources back for a customer who is willing to pay a standard fee for those resources, these nodes will suffer Spot Instance interruption.  

Processes have been created to warn customers of any interruption of the Spot Instances consumed, with an alert being automatically sent to advise that service interruption will happen within two minutes, allowing customers to automate a correct response. This risk must be understood [Fig 3], but the alert does allow ROSA to automatically manage this volatility of nodes effectively.

To use Spot Instances with ROSA, you will need to add a new machine pools to an existing cluster. The cluster will have a default worker machine pool, which can be examined through either the ROSA CLI client or the ROSA portal available at cloud.redhat.com

Fig 1: ROSA Command line detail of default machine pool

Fig 2: ROSA machine pool Managed through OpenShift Cluster Manager (OCM)

Customers can then use these tools to add a new machine pool.

Fig 3: Output from the help provided in ROSA CLI

Fig 4: OCM Add Machine pool window 

Although before we decide to deploy resources to a Spot Worker node, it is essential that we make sure the services that we intend to deliver here are well designed to use on volatile Spot Instances.

AWS has some good advice to customers on the workloads that work well when using Spot. Please be cautious, because Red Hat has found that not all deployments of a container service are delivered in the same way by our customers and the approach taken can decide if workloads suit SPOT instances 

Looking at Red Hat’s advice in this area, the best services to deploy onto a Spot worker tier are refactored (rearchitected) applications. Meaning those applications that have been migrated to OpenShift using the rehost and replatform approaches may not be ideal for a Spot Instance tier and may better suit deployment to a standard worker node tier using EC2 instances in ROSA.

Once you are confident that you have a service well-suited to operate in Spot environments, the next step is to make sure the pods that run your Spot optimized service will be deployed onto the machine pool that has Spot Instances available.    

Within ROSA, this is done using the ability to add labels and taints to your machine pools. This metadata allows you to orchestrate the behavior of your services pods in Kubernetes with fine detail. Labels are a keyvalue pair allowing you that control

When these features are applied to a new Spot Instance Machine Pool, the services that will best run on Spot Instances can then be forced to run on those nodes.

The ability to define a pool of Spot Instances worker resources in OpenShift is a fantastic additional capability that can help organizations tune and streamline their infrastructure usage when using ROSA. But like all great innovations, it works best for specific use cases, such as replatformed and refactored services that are decoupled. For the best results when designing your solution, work with your AWS and Red Hat teams to understand the nature of the workloads you are planning to deliver onto ROSA, and then decide where this technology can help accelerate your transformation to Hyperscale-based service delivery.


关于作者

UI_Icon-Red_Hat-Close-A-Black-RGB

按频道浏览

automation icon

自动化

有关技术、团队和环境 IT 自动化的最新信息

AI icon

人工智能

平台更新使客户可以在任何地方运行人工智能工作负载

open hybrid cloud icon

开放混合云

了解我们如何利用混合云构建更灵活的未来

security icon

安全防护

有关我们如何跨环境和技术减少风险的最新信息

edge icon

边缘计算

简化边缘运维的平台更新

Infrastructure icon

基础架构

全球领先企业 Linux 平台的最新动态

application development icon

应用领域

我们针对最严峻的应用挑战的解决方案

Virtualization icon

虚拟化

适用于您的本地或跨云工作负载的企业虚拟化的未来