Rollback Time Limit in Mongo Community Server

Hi @Robin_Hermanek,

I just realised rollbackTimeLimitSecs is a MongoDB Server Parameter. not a distinct command-line option.

You need to set this value using setParameter which can be done:

  • At runtime:

    db.adminCommand( { setParameter: 1, rollbackTimeLimitSecs:86400 } )

  • Via the --setParameter command-line option:

    mongod --setParameter rollbackTimeLimitSecs=86400 ...

  • Via the setParameter setting in a mongod configuration file:
    setParameter:
        rollbackTimeLimitSecs: 86400

You can use the getParameter command to check the current value:

  db.adminCommand({ getParameter: 1, rollbackTimeLimitSecs:1})

Regards,
Stennie

2 Likes