Solve the problem of Not correct os.cpus().length inside the docker container with cpus limited.
npm install get_cpus_lengthGet os.cpus().length to match Linux container CPU quota.
``diff
const getCpusLength = require("get_cpus_length");
+ console.log("CpusLength: ", getCpusLength());
- console.log("CpusLength: ", require("os").cpus().length);
`
bash
npm install get_cpus_length
`
or
`bash
yarn add get_cpus_length
``