You can bind a cpu to prevent mutual interference between multiple instances. Mongodb memory can also be restricted to the master to prevent all memory occupied by one instance.
You can bind a cpu to prevent mutual interference between multiple instances. Mongodb memory can also be restricted to the master to prevent all memory occupied by one instance.
Under multiple instances:
You can bind a cpu to prevent mutual interference between multiple instances.
Mongodb memory can also be restricted to the master to prevent all memory occupied by one instance.
Ulimit-s 4096 & ulimit-m 31457280 & sudo-u mongodb numactl -- cpunodebind = 0 -- localalloc/opt/soft/mongodb-2.2.0/bin/mongod -- fork -- master -- oplogSize 10240 -- port 27001 -- dbpath/data/mongodb/db27001/-- logpath/data/logs/mongodb/mongodb27001.log-logappend -- nohttpinterface -- directoryperdb
Ulimit-s sets the stack size.
Ulimit-m sets the memory size used by the process.
Numactl -- cpunodebind = 0 bind the process to the first cpu.
In this way, the cpu memory is free of interference.