# WiredTiger configuration, file\_manager

**URL:** <https://forums.percona.com/t/wiredtiger-configuration-file-manager/11486>\
**Category:** Percona Operator for MongoDB\
**Created:** [July 23, 2021, 9:24am UTC](https://forums.percona.com/t/wiredtiger-configuration-file-manager/11486 "2021-07-23T09:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)\
**Post date:** [July 23, 2021, 9:24am UTC](https://forums.percona.com/t/wiredtiger-configuration-file-manager/11486/1 "2021-07-23T09:24:12Z")

</div>

With Percona image percona/percona-server-mongodb:4.4.3-5 the file manager has the following config

file\_manager=(close\_idle\_time=100000,close\_scan\_interval=10,close\_handle\_minimum=250)

So after 27.7h it starts to release the file handles and with a regular HDD the livenessprobe gets a timeout because the HDD is clogged up with closing the files. Therfore I want to avoid that or reduce the amount of open files.

According to

[https://jira.mongodb.org/browse/SERVER-31155](https://jira.mongodb.org/browse/SERVER-31155)

This should be possible but it seems on Percona it has no effect

```
    engineConfig:
        configString: "file_manager=(close_handle_minimum=20000,close_idle_time=3600,close_scan_interval=60)"

```

Thanks  
John

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [July 26, 2021, 10:37am UTC](https://forums.percona.com/t/wiredtiger-configuration-file-manager/11486/2 "2021-07-26T10:37:34Z")

</div>

Hello John,

if you run v 1.9 of our Operator then you should be able to customize mongod/mongos parameters through spec.replsets..configuration. See more here:

> **[Changing MongoDB Options](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/options.html)**
>
> Changing MongoDB Options

engineConfig.configString is not supported in our Operator.

---

<div class="post-metadata">

**Author:** ![jamoser](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jamoser](https://forums.percona.com/u/jamoser)\
**Post date:** [July 27, 2021, 4:21pm UTC](https://forums.percona.com/t/wiredtiger-configuration-file-manager/11486/3 "2021-07-27T16:21:57Z")

</div>

Thanks @Sergey_Pronin … it looks like the values get accepted:

```auto
  replsets:
...
    configuration: |
      storage:
        wiredTiger:
          engineConfig:
            configString: "file_manager=(close_idle_time=30,close_scan_interval=30,close_handle_minimum=100)"

```

In the log file we have the file\_manager settings in 3 places. So which is now valid ?

{“t”:{“$date”:“2021-07-27T16:13:08.921+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:21951, “ctx”:“initandlisten”,“msg”:“Options set by command line”,“attr”:{“options”:{“config”:“/etc/mongodb-config/mongod.conf”,“net”:{“bindIp”:“\*”,“port”:27017,“tls”:{“CAFile”:“/etc/mongodb-ssl/ca.crt”,“allowInvalidCertificates”:true,“certificateKeyFile”:“/tmp/tls.pem”,“clusterCAFile”:“/etc/mongodb-ssl-internal/ca.crt”,“clusterFile”:“/tmp/tls-internal.pem”,“mode”:“preferTLS”}},“operationProfiling”:{“mode”:“slowOp”,“rateLimit”:100,“slowOpThresholdMs”:100},“replication”:{“replSet”:“rs01”},“security”:{“authorization”:“enabled”,“clusterAuthMode”:“x509”,“enableEncryption”:true,“encryptionCipherMode”:“AES256-CBC”,“encryptionKeyFile”:“/etc/mongodb-encryption/encryption-key”,“relaxPermChecks”:true},“setParameter”:{“ttlMonitorSleepSecs”:“60”,“wiredTigerConcurrentReadTransactions”:“128”,“wiredTigerConcurrentWriteTransactions”:“128”},“sharding”:{“clusterRole”:“shardsvr”},“storage”:{“dbPath”:“/data/db”,“engine”:“wiredTiger”,“wiredTiger”:{“collectionConfig”:{“blockCompressor”:“snappy”},“engineConfig”:{“cacheSizeGB”:3.23,“configString”:“ **file\_manager** =(close\_idle\_time=30,close\_scan\_interval=30,close\_handle\_minimum=100)”,“journalCompressor”:“snappy”},“indexConfig”:{“prefixCompression”:true}}}}}}

{“t”:{“$date”:“2021-07-27T16:13:09.602+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22315, “ctx”:“initandlisten”,“msg”:“Opening WiredTiger”,“attr”:{“config”:“create,cache\_size=3307M,session\_max=33000,eviction=(threads\_min=4,threads\_max=4),config\_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy), **file\_manager** =(close\_idle\_time=100000,close\_scan\_interval=10,close\_handle\_minimum=250),statistics\_log=(wait=0),verbose=[recovery\_progress,checkpoint\_progress,compact\_progress],encryption=(name=percona,keyid="/default"),extensions=[local=(entry=percona\_encryption\_extension\_init,early\_load=true,config=(cipher=AES256-CBC)),], **file\_manager** =(close\_idle\_time=30,close\_scan\_interval=30,close\_handle\_minimum=100)”}}
