[SERVER-10033] Add a global flag to turn off the TTLMonitor thread Created: 26/Jun/13  Updated: 27/Oct/15  Resolved: 03/Jul/13

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 2.4.6, 2.5.1

Type: New Feature Priority: Major - P3
Reporter: Steve Briskin (Inactive) Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 2
Labels: brs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-2527 Document flag that disables TTLMonito... Closed
Participants:

 Description   

Via a command-line parameter and/or server command.

May be used to stop TTL deletes if the system is under extreme load or during an outage/corruption investigation. A single global (or per-DB) setting would be easier than having to update or drop all TTL indexes.

By default, the TTLMonitor thread is enabled. To disable at startup:

--setParameter ttlMonitorEnabled=false

To disable at runtime:

db.adminCommand({setParameter:1, ttlMonitorEnabled:false})



 Comments   
Comment by Asya Kamsky [ 14/Jan/14 ]

Opened DOC ticket to document option.

Comment by auto [ 05/Jul/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-10033: fix typo in disable logic
Branch: v2.4
https://github.com/mongodb/mongo/commit/73dac6d52ea5b61c750a8d87121e4e0d7a410d4f

Comment by auto [ 05/Jul/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-10033 Add parameter to disable the TTLMonitor

Conflicts:
src/mongo/db/ttl.cpp
Branch: v2.4
https://github.com/mongodb/mongo/commit/65c74804583291dff35cc53eb3083b9da037e1d2

Comment by auto [ 03/Jul/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-10033: fix typo in disable logic
Branch: master
https://github.com/mongodb/mongo/commit/c11ea25c522ce5ac3573b4a9638dfa069ed30d92

Comment by auto [ 03/Jul/13 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-10033 Add parameter to disable the TTLMonitor
Branch: master
https://github.com/mongodb/mongo/commit/f397dbcf4378d70a5cdc9b871f583a00d833b9ec

Generated at Thu Feb 08 03:22:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.