Disk per database

25 views
Skip to first unread message

DaveC

unread,
Nov 5, 2012, 9:49:45 AM11/5/12
to mongod...@googlegroups.com
Is there a way to configure MongoDB such that each database may be stored on a different disk?  Here is why:

I have a multi-tenant system, and I am isolating customer data by database.  A customer has free reign over their database.  Customers pay for the amount of disk space they consume, along with the I/O.  At the OS level, I can't really track the I/O on a file by file basis, so I would like to put each customer database on a particular storage volume.  However, I can't find a way to do this unless I create a separate instance of MongoDB for each customer.  Is there an option I'm missing?

Thanks.

Octavian Covalschi

unread,
Nov 5, 2012, 10:37:12 AM11/5/12
to mongod...@googlegroups.com
You can tell mongodb to create a directory per database, this way you can create a symbolic link to each database...

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages