Optimization of the algorithm. Do not traverse over the pool of nodes in...

... search of remote nodes if the limit of remote nodes per datacenter is set to zero. In such a case we select only local nodes. Traversing over all nodes and filtering the remote host is a waste of time.