add thread pool setting
set min/max thread pool