1
I have mongodb running on a 500GB primary drive. As the base started to grow a lot, I put a 1TB slave disk and changed to it the folder date. I know that in time, this 1TB record will also be little.
I wonder if there is a possibility to put a third disk and make Mongo also use it to store data. In other words, in my design Mongo would use disks 2 and 3 and divide the data load between them. My question to the learned is: does it exist? Is it possible?
I’ve researched the concept of sharding, and I’ve even understood it. But in shardind, I would divide the data between two machines, that is, between two instances of mongodb. It’s an option I have to use as a last resort.
But before going to sharding, I would still like to know if it is possible in the same instance to split the data between two different folders (which will be on different disks).
Thank you for any information.
I thought another possibility: use the option directoryPerDB and have the Databases and folders separate. Then I would move the folders of some Databases to another disk and inside the DB I would create shortcuts, pointing to the real folders that will be on the other disk. Might work?
– Paulo Luvisoto
I honestly don’t know, I’ve never tested this solution, but I think it’s worth a try.
– Silvio Lucena Junior