Skip to content
logo
Percona Platform
MongoDB journal enabled
Initializing search
    portal-doc
    portal-doc
    • Welcome
    • What's new
    • Registration and log in
    • Create and manage organizations
    • Check activity logs
    • Connect your PMM server
    • Advisor checks for PMM
    • Launch PMM environment
    • Network configuration
      • Copyright and licensing information
      • Trademark policy
    • Description
    • Rule
    • Resolution
    • Need more support from Percona?

    MongoDB journal enabled¶

    Description¶

    This advisor warns if the journal is not enabled. Disabled journal is dangerous because you could have a serious issue for data durability in case of a failure.

    For Production systems, enable journal to ensure that data files are valid/recoverable.

    It is always recommended to enable the journal.

    In recent versions (starting with versions 4.0 +), MongoDB enables journaling by default and doesn’t allow turning it off.

    For more information, see the Journaling section in the MongoDB documentation.

    Rule¶

     storage_journal = parsed.get("storage.journal", {})
     journal_enabled = (storage_journal.get("enabled") == "true")
    

    Resolution¶

    Follow the steps below to enable journaling:

    1. Enable journal.
    2. Edit mongod.conf and set the following parameter:

      storage:
        journal:
          enabled: true
      

    3. Roll-restart your mongod (data bearing) nodes.

    Need more support from Percona?¶

    Subscribe to Percona Platform to get database support with guaranteed SLAs or proactive database management services from the Percona team.

    Learn more

    Contact us

    For free technical help, visit the Percona Community Forum.

    To report bugs or submit feature requests, open a JIRA ticket.

    For paid support and managed or consulting services , contact Percona Sales.

    2024-03-08
    Percona LLC and/or its affiliates, © 2024 Cookie Preferences
    Made with Material for MkDocs