Maria_Piao
(Maria Piao)
10
I have a similar use case where I need to call ttlMonitorEnabled=false with setParameter for our CI. The easiest way would be to pass the parameter at mongod startup. Unfortunately this option is unavailable from commandline, nor /etc/mongod.conf.
We resorted to spinning up an extra thread to call mongosh --eval 'db.adminCommand({ setParameter:1, ttlMonitorEnabled: false })' some time after the service is healthy, but this is hardly optimal.
Please consider allowing a hook to set startup parameters!