I am using MongoDB and I am trying to force the WiredTiger cache size to be larger than the default. I am using a machine with 4GB RAM, hence WT cache size is about 1.5GB. I wish to force this to 2GB as my DB size is slightly above the default.
I am linking
/etc/mongod.conf in the volumes with the content below. If I log into the container I can see that mongod.conf is there as I provided it, but the mongo log always says that memory cache size is 1.5G.
storage: wiredTiger: engineConfig: cacheSizeGB: 2
Am I missing something here or is it impossible to do this? (MongoDB docs only advise not do it, but should be possible)