15

I have a database currently running on EC2. As I have to move it to a bigger machine the question of using RDS came up.

Pricing:

I can get an EC2 c3.large instance with two SSDs (16GB each), two vCPUs and 4GB of memory on demand for $0.132 per hour [1].

The closest (considering price) RDS machine would be db.m3.medium for $0.125 per hour (Single-AZ) [2]. This machine has the same amount of memory but only one vCPU [3]. Additionally I would have to pay for storage and io [2].

So the prices would be very similar for these two.

The advantages for EC2:

  1. As mentioned already, one more vCPU.
  2. I can put the Write-Ahead-Log on the second disc when using EC2 (great performance improvement when writing a lot to the db).
  3. I can run pgbouncer on my EC2 instance (more performance because I can keep connections open).
  4. I can edit the configuration file (will eventually improve performance)

The advantages for RDS:

  1. Automatically does daily backups.

Can RDS cover the advantages that EC2 has (especially 2.)? Is there any other advantages?

2 Answers 2

10

Like most things, it's a cost vs effort/complexity trade-off.

RDS is easier, but less flexible, and costs more for the same level of performance.

(In particular, note that there's no way to replicate into or out of RDS)

1
  • So I will keep the existing solution :-)
    – kev
    Commented Sep 12, 2014 at 2:14
6

For a single instance comparison, not much, but RDS has many advantages, maintenance of a multi-AZ setup with read replicas in different regions, etc. is more than I'd prefer to deal with in EC2. RDS does a tremendous amount of tooling you'd otherwise have to do yourself; this is always a plus. RDS also presents a uniform interface to your databases, in my view a considerable advantage as well as it helps enforce consistency in deployment of databases. We still use pgbouncer on an instance of course.

I'd frankly prefer to run databases on coloc hardware than in EC2. I hate running databases in EC2. Moving them around, doing dumps and backups is nightmarish as the i/o performance of ec2 is simply miserable and buying lots of iops is hideously expensive and still doesn't approach hardware performance in any way. If I can live with the limits of RDS I'm always going to use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.