Question: How would you determine the number of cluster instances to start when using the cluster module?
- const numInstances = cluster.instances().length;
- const numInstances = cluster.instances();
- const numInstances = require('os').cpus().length;
- const numInstances = process.cpus().length;
Answer: The correct answer of the above question is Option C:const numInstances = require('os').cpus().length;