I’m running mongod in standalone node. 3 years back we had replication and sharding enabled but since that we migrated back to single node. But TTL Index is not working in single node.
I’ve checked whether ttl monitor is enabled
db.adminCommand( { getParameter: 1, ttlMonitorEnabled: 1 } )
{
“ttlMonitorEnabled” : true,
“ok” : 1
}
but on doing this
db.serverStatus().metrics.ttl
{
“collSubpassesIncreasedPriority” : 0,
“deletedDocuments” : 0,
“passes” : 0,
“subPasses” : 0
}
Deleted documents count is zero even though I have ttl Index.
I have also deleted documents in local.system.replset and still ttl Indexes are not effective. What could be the reason.