cluster: Added config option to set the threadpool size.