[QE-1024] Making max thread count configurable