sglai
sglai

Reputation: 307

mongodb reached disk full on EC2, what is the best practices?

Mongodb run on EC2 micro instance reached disk full. What options do I have?

  1. attach a new EBS?
  2. create a new instance?
  3. create sharding?

Upvotes: 0

Views: 600

Answers (1)

golja
golja

Reputation: 1093

The easiest way would be to attach a new ESB if the performance was not an issue before and stop mongo move the data on the new disk and restart mongo with the new --dbpath.

Of course if you want to improve the performance and add some complexity to your solution create a new shard, but than you need to double check if your code it's shard proof :) (example: MapReduce and sharding environment)

Upvotes: 2

Related Questions