Users can configure the number of worker threads however when it's
not specified the calculated number of workers can get too large on
hosts with a large number of CPUs.
Change-Id: I039993d28dbddbd43ffcb2a6f84785df475fefeb
(cherry picked from commit 4253b61abf)