Set the pool idle and switch pool, if need