Mongodb sharding on the same machine with different disks

Viewed 17

I am developing a project with a mongodb database and now I am researching to put it into production.

I am going to deploy the database on my own server, that is why I am looking at the best way to do it.

I had initially thought of creating a raid 5 system on my server and hosting the mongodb storage on it, however after some reading I discovered that this doesn't make much sense since mongodb has its own replication system through sharding.

But my question is if I can implement sharding on a single machine and that each of these replicas run on a different hard drive to avoid losing data if one crashes or if I need to have different machines to create on each of these replicas.

I hope someone can help me with this, I'm actually pretty new to mongodb. thanks

0 Answers
Related