Configure threads for each DB instance