def __init__(self, cluster_document): Cluster.__init__(self, cluster_document) self._config_members = self._resolve_members("configServers") #self._shards = self._resolve_shard_members() self._shards = self._resolve_members("shards") # members list stores the mongos servers if not self._members or not self._config_members or not self._shards: raise Exception("Please specify config, shard, and mongos servers for cluster %s" % self.get_cluster_name())
def __init__(self, cluster_document): Cluster.__init__(self, cluster_document) self._config_members = self._resolve_members("configServers") self._shards = self._resolve_shard_members()
def __init__(self, cluster_document): Cluster.__init__(self, cluster_document) self._members = self._resolve_members("members")
def __init__(self, cluster_document): Cluster.__init__(self, cluster_document)
def __init__(self, cluster_document): Cluster.__init__(self, cluster_document) self._config_servers = None self._shards = None
def __init__(self): Cluster.__init__(self) self._load_pdu_devices() self._load_routers()