# File lib/openshift-origin-controller/lib/openshift/mongo_data_store.rb, line 328
    def find_available_district(node_profile=nil)
      node_profile = node_profile ? node_profile : "small"
      MongoDataStore.rescue_con_failure do
        hash = district_collection.find(
          { "available_capacity" => { "$gt" => 0 }, 
            "active_server_identities_size" => { "$gt" => 0 },
            "node_profile" => node_profile}).sort(["available_capacity", "descending"]).limit(1).next
        hash_to_district_ret(hash)
      end
    end