How to set wiredTigerEngineRuntimeConfig eviction=(threads_min=6) to mongod.conf?

I want to persist the following parameters and modify them into mongod.conf. Currently, the configuration is not recognized.
db.adminCommand({setParameter: 1,wiredTigerEngineRuntimeConfig:“eviction=(threads_min=6,threads_max=12)”});

vim mongod.conf
sharding:
clusterRole: shardsvr
storage:
dbPath: /mongodb_sh1_27003/db
wiredTigerEngineRuntimeConfig:“eviction=(threads_min=6,threads_max=12)”
wiredTiger:
engineConfig:
cacheSizeGB: 1

Error when starting mongod
$ mongod -f mongod.conf
Unrecognized option: storage.wiredTigerEngineRuntimeConfig
try ‘mongod --help’ for more information

Hi @xinbo_qiu,

You can’t set this parameter in your configuration file in this way:

Also, looking quickly, there are no ways to set it persistently.

Regards

User the setParameter option in the configuration file:

setParameter:
  wiredTigerEngineRuntimeConfig: eviction=(threads_min=6,threads_max=12)
2 Likes

You’re right as always!! @chris :top:

Best regards

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.