Git Product home page Git Product logo

Comments (2)

yosifkit avatar yosifkit commented on June 3, 2024

Seems to work fine here, and you don't even need a symlink! 😺

$ mkdir mongo-data mongo-journal
$ docker run -d -v ~/mongo-data/:/data/db/ -v ~/mongo-journal/:/data/db/journal/ mongo
$ ls -ln mongo-*/
mongo-data/:
total 104
-rw-r--r-- 1 999 1000 16384 Jan 27 15:10 collection-0--5103028317213166617.wt
drwxr-sr-x 2 999 1000  4096 Jan 27 15:10 diagnostic.data
-rw-r--r-- 1 999 1000 16384 Jan 27 15:10 index-1--5103028317213166617.wt
drwxr-sr-x 2   0 1000  4096 Jan 27 15:09 journal
-rw-r--r-- 1 999 1000 16384 Jan 27 15:10 _mdb_catalog.wt
-rw-r--r-- 1 999 1000     2 Jan 27 15:09 mongod.lock
-rw-r--r-- 1 999 1000  4096 Jan 27 15:09 sizeStorer.wt
-rw-r--r-- 1 999 1000    95 Jan 27 15:09 storage.bson
-rw-r--r-- 1 999 1000    49 Jan 27 15:09 WiredTiger
-rw-r--r-- 1 999 1000  4096 Jan 27 15:09 WiredTigerLAS.wt
-rw-r--r-- 1 999 1000    21 Jan 27 15:09 WiredTiger.lock
-rw-r--r-- 1 999 1000   910 Jan 27 15:10 WiredTiger.turtle
-rw-r--r-- 1 999 1000 20480 Jan 27 15:10 WiredTiger.wt

mongo-journal/:
total 307212
-rw-r--r-- 1 999 1000 104857728 Jan 27 15:10 WiredTigerLog.0000000001
-rw-r--r-- 1 999 1000 104857728 Jan 27 15:09 WiredTigerPreplog.0000000001
-rw-r--r-- 1 999 1000 104857728 Jan 27 15:09 WiredTigerPreplog.0000000002

from mongo.

vincebowdren avatar vincebowdren commented on June 3, 2024

Ah, of course; mapping the data and the journal volumes separately. I've tried it out and it is working for me here too, so I can now recommend this technique to our customers who wish to separate journal and data volumes.

One caveat: the mongo container does still create the journal subfolder in the data directory, even if it's not actually using it because of the separate journal mapping.

from mongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.