本文介绍了AWS增加iops的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前从未使用过AWS,并且创建了一个托管在EC2实例上的php应用程序.

I have never used AWS before and have created a php application hosted on an EC2 instance.

应用程序在处理记录后将其插入到RDS中.在免费层上,它以每秒约10条记录的速度插入它们.

The application inserts records into a RDS after processing them. On the free tier it is inserting them at a rate of around 10 records per second.

我将如何提高此过程的速度?我添加了100GB的预配置IOPS存储,限制为1000 iops.

How would I go about improving the speed at which this process takes place? I have added 100GB provisioned IOPS storage with a limit of 1000 iops.

但是,当我运行我的应用程序时,我得到的速度与以前相同.

However when I run my application I get the same speeds as before.

Ec2实例和RDS实例的哪些规格将决定它将以多快的速度写入数据库?

What specs on the Ec2 instance and the RDS instances will determine how quickly it will write to the database?

推荐答案

做笔记

  1. AWS免费套餐实例仅用于临时使用. t2.micro在"CPU信用"突发模式下运行.一旦您用尽了这些CPU信用,服务器就会将CPU的速度降低到25%以上,从而降低性能.

  1. AWS free tier instance is only mean for casual usage. t2.micro is running on "CPU credit" burst mode. Once you run out of those CPU credit, the server will throttle to more than 25% CPU, thus your performance will suffered.

您应该在cloudwatch上投入一些资金来发送RDS IOPS信息,以了解真正的问题是什么,例如找出是CPU,RAM还是IO问题.

you should invest a bit in cloudwatch to send RDS IOPS info to learn what is the real issues, e.g. to find out whether it is CPU, RAM or IO issues.

AWS在相当长的一段时间内推出了SSD gp2存储.因此,您应该使用每GB x 3 IOPS机制的AWS,而不是直接进入Provisioned IOPS.本文告诉您为什么您应该配置的gp2存储比使用配置的IOPS 更好.使用具有突发IO的gp2,您还将获得额外的物有所值.

AWS introduce SSD gp2 storage for quite some time. So you should make use of AWS per GB x 3 IOPS mechanism than jump straight into Provisioned IOPS. This article tell you why you should over provisioned gp2 storage than use provisioned IOPS . You also get extra value for money with gp2 with burst IO.

这篇关于AWS增加iops的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 02:23