I keep on reading/misunderstanding in&out in EBS costs $.10 per million. does that mean 1M queries cost $.10? b/c i am creating a web-based tests and they require a lot of queries to save progress, results and exams. I also use blob object in my sql to store images. So does that mean i pay $.10 for 1m queries?
feedback
|
|
EBS is raw, block-level storage. Think of it like virtual disk. You ask for an EBS volume, mount it on an AWS machine instance, format it, and then store data on it. It costs money to store data on an EBS volume, and money to move data in and out to an EBS share from outside AWS. Accessing it from within AWS is free, you just pay for the storage in this case. So if you're running an SQL server on an AWS instance that stores it's data on an EBS volume, it costs you to store the SQL data on the EBS disk, but there's no cost to make a query against that SQL server running on the AWS instance (assuming the transaction can occur with data that's entirely memory mapped). That's just over-the-wire data transfer and it's what AWS instances were, more or less, designed to originally: serve up data. To estimate your EBS costs you need to figure out how much data on disk your SQL server will to be storing, not how many queries are going to be made against your SQL server. Data on disk: that's the EBS cost of your AWS-based design. There's a section at the end of that EBS link that gives you the following advice about estimating your EBS costs:
| |||||
feedback
|
|
That $0.10 is charged based on number of I/O requests not number of queries. If you use EBS to store a database, then each database query may require any number of I/O requests. For instance, an UPDATE query takes several operations to complete: it needs to read through the database to find the rows to change, then write back the changed rows and possibly write changed indexes as well. However, if the database server has cached the table in memory, it will not need to read from the EBS volume to find the rows to change, so it will take fewer I/O requests. There isn't an easy way to say "$0.10 buys you this many queries". | |||||||||
feedback
|