MongoDB directory structure (OFA)
The dbi services MongoDB Optimal Flexible Architecture (OFA) has been developed according to the Oracle standards. Since Oracle and RDBMS provide clear and robust directory standards, these conventions can easily be adapted to NoSQL engines. dbi services has leveraged and extended theses standard for MongoDB.
Nowadays, due to the evolution of the storage systems, the main purpose of the OFA standard is no longer to improve performance by distributing the database components over the storage infrastructure. Instead, its primary purpose is to provide a logical, efficient and easy to maintain directory structure.
Based on OFA, dbi services developed a Database Management Toolkit (DMK) that allows you to easily move around the core directories of the MongoDB products. dbi services has also adapted OFA standards to suit customers' needs, incorporating years of experience in large-scale database management. Therefore, some recommendations will differ from the original OFA document published in 1995.
This document also aims at presenting the OFA architecture in order to be able to deploy it on any MongoDB server infrastructure.
In summary the core advantages of the OFA architecture are listed below:
All servers have the same directory structure, decreasing the maintenance and troubleshooting efforts (and costs).
Propose a structure to install MongoDB products but also other kind of NoSQL server (for instance Cassandra, Redis)
Database security is increased since the critical components are spread out over several physical disks and locations
Since all servers use the same structure the deployment of scripts is easier from a central server.
Based on its NoSQL database infrastructure management experience, dbi services strongly recommends using OFA standards, or at least following as much best practices as possible.
/u01
Keep all admin files, database binaries, DMK installation and config files
/u0[2..x]
Kep all database files
/090
Keep all backups and dumps
/u01/app/mongodb/product/x.x
Mongo db database binaries. x.x. is the version number
/u01/app/mongodb/local/dmk
DMK install path
/u01/app/mongodb/etc
DMK configuration files
/u01/app/mongodb/artifacts
Stage path to keep tar.gz binaries files.
/u01/app/mongodb/admin/{database_name}
Configuration and initialization fields for each database
/u02/mongodbdata
Database files
/u02/mongodblog/{database_name}
Database log files
/u90/backup/{database_name}
Backups and dumps
Variables associated with OFA
These variables are defined in the dmk.conf
file, located at ${DMK_HOME}/etc/dmk.conf
.
MONGODB_BASE
/u01/app/mongodb
MONGODB_LOG
/u02/mongodblog
MONGODB_BACKUP
/u90/backup
Last updated