Search code examples
ruby-on-railsamazon-s3amazon-ec2riak

If I have a Riak DB, should it store to Amazon S3 or to the EC/2 instance?


I am setting up an Amazon EC/2 instance, and am putting Riak on it. I am wondering if I should store the data locally (and not ever delete the instance), or set up Riak to store to S3 and bring up/take down instances as I need?


Solution

  • For persistent data you should use an Elastic Block Store (EBS) volume; this is persistent across system restarts and can be attached to different EC2 instances at will.