how about "2 for local mode, and in cluster mode the number is determined by ..."