Optimal Flexible Architecture
Description of the Optimal Flexible Architecture (OFA) for MongoDB.
Inspired by Oracle standards, dbi services has developed an equivalent Optimal Flexible Architecture (OFA) for MongoDB. Its purpose is to provide a logical, efficient, and maintainable directory structure.
All MongoDB instances follow the same installation and management conventions, enabling easier automation.
Mount Points and Paths
The recommended mount points for an OFA-compliant MongoDB system are listed below:
/u01
Administration files, database binaries, DMK installation and configuration files
/u02
Data files
/u03
Journal files
/u04
Log files
/u90
Backups and dumps
Important paths on your system :
/u01/app/mongodb/product/x.y.z
MongoDB binaries. X.Y.Z is the main MongoDB version (8.0.11, for instance)
/u01/app/mongodb/local/dmk
DMK installation path
/u01/app/mongodb/etc
Location of the mongodb.lst
file, listing the MongoDB instances on the server
/u01/app/mongodb/artifacts
Stage path to keep tar.gz binaries files
/u01/app/mongodb/admin/<instance_name>
Configuration files for MongoDB instances
/u02/mongodb/data/<instance_name>
MongoDB data files
/u03/mongodb/journal/<instance_name>
MongoDB journal files
/u04/mongodb/log/<instance_name>
MongoDB log files
/u90/mongodb/backup/<instance_name>
MongoDB backups and dumps
Variables associated with OFA
These variables are located in the $DMK_HOME/etc/dmk.conf.default
file.
$MONGO_BASE
/u01/app/mongodb
Binary files, instances configuration.
$MONGO_DATA_ROOT
/u02/mongodb/data/
MongoDB data files.
$MONGO_JOURNAL_ROOT
/u03/mongodb/journal/
MongoDB journal files. If you don't want to separate MongoDB journal and data files, set MONGO_JOURNAL_ROOT
to the same value as MONGO_DATA_ROOT
.
$MONGO_LOG_ROOT
/u04/mongodb/log/
MongoDB instances log files. Default changed in release 2.3.0 from /u02/mongodblog
to /u04/mongodb/log
, to separate data and log files.
$MONGO_BACKUP_ROOT
/u90/mongodb/backup
MongoDB backups location.
These directory conventions help standardize deployment and maintenance across environments.
Last updated