|
Redirect journal folder for write intensive workloads
In this scenario, we will mount a new volume that will be dedicated to the journal. We will mount this new volume as /journal
If you installed MongoDB via one of our packages (RPM,DEB), the default location of the database will be in the following path:
As journaling is enabled by default, the default journal path would be:
As a reminder, in this example you should have mounted the new journal path as /journal
Now we create a symbolic link from the default journal path /var/lib/mongo/journal to the volume called /journal using the Linux 'ln' command.
ln -s /journal /var/lib/mongo/
|
|