如何在AWS上获得一致的CPU利用率 [英] How to get consistent CPU utilization on AWS

查看:114
本文介绍了如何在AWS上获得一致的CPU利用率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在了解到,当我启动一个新的EC2实例时,它具有一定数量的CPU信用,因此开始处理时性能很高,但随着信用用尽而逐渐减少.超过该时间点后,实例将以基准CPU利用率基准运行.算一下,当我启动EC2实例(t2.nano)时,Cloudwatch报告了大约80%的CPU利用率逐渐降低到5%.

I've now learnt that when I start a new EC2 instance it has a certain number of CPU credits due to which it's performance is high when it starts processing but gradually reduces over time as the credits run out. Past that point, the instance runs at which appears to be the baseline CPU utilisation rate. To numerate, when I started the EC2 instance (t2.nano), Cloudwatch reported around 80% CPU utilisation gradually decreasing down to 5%.

现在,我很高兴使用更好的实例类型之一来等待实例限制请求.但是尽管正在进行中,但我想知道即使使用更好的实例类型,随着时间的推移降低性能的问题是否仍然存在?

Now I'm happy to use one of the better instance types pending the instance limit request. But whilst that is in progress, I'd like to know whether the issue of reducing performance over time will still hold even with the better instance type?

如果我想确保获得一致的CPU使用率,是否需要专用的主机设置?我在这里看到的唯一问题是,我正在运行一个SQS工作队列,而Elastic Beanstalk使我们能够轻松地设置一个工作环境来从队列中读取消息.从阅读过的内容以及从Elastic Beanstalk中可用的配置选项来看,我认为我无法直接将实例启动到专用主机中.我的大部分阅读都使我相信,我将必须学习如何使用VPC.正确吗?

Would I require a dedicated host setup if I wish to ensure I get consistent CPU utilisation? The only problem I can see here is that I'm running a SQS worker queue and Elastic Beanstalk allows us to easily setup a worker environment which reads messages from the queue. From what I've read and from looking at the configuration options available in Elastic Beanstalk, I don't think I'll be able to launch instances into a dedicated host directly. Most of my reading has lead me to believe that I'll have to learn how to use a VPC. Would that be correct?

所以我想我的问题是-只是将实例类型增加到一个更强大的实例就可以保证一致的CPU利用率性能,还是需要专用主机,如果是这样,是否可以使用Elastic Beanstalk设置一个主机,或者要手动设置,如果手动设置,可以将其配置为自动与SQS队列一起使用吗?

So I guess my questions are - would simply increasing the instance type to a more powerful instance guarantee consistent CPU utilisation performance or is a dedicated host required and if so, is it possible to set up one with Elastic Beanstalk or would it have to be setup manually and if it is set up manually can it be configured to work with an SQS queue automatically?

推荐答案

如果要保持一致的CPU性能,则应避免使用可爆性能实例(T2系列).随着时间的推移,所有其他实例系列(M5,C5等)将具有一致的CPU性能.您可以将任何实例族与Elastic Beanstalk一起使用.不需要专用主机.

If you want consistent CPU performance, you should avoid the burstable performance instances (the T2 family). All other families of instances (M5, C5, etc) will have consistent CPU performance over time. You can use any instance family with Elastic Beanstalk. No need for a dedicated host.

这篇关于如何在AWS上获得一致的CPU利用率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆