예제 #1
0
    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())
예제 #2
0
 def __init__(self, cluster_document):
     Cluster.__init__(self, cluster_document)
     self._config_members = self._resolve_members("configServers")
     self._shards = self._resolve_shard_members()
예제 #3
0
 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)
예제 #5
0
 def __init__(self, cluster_document):
     Cluster.__init__(self, cluster_document)
     self._members = self._resolve_members("members")
예제 #6
0
 def __init__(self, cluster_document):
     Cluster.__init__(self, cluster_document)
     self._config_servers = None
     self._shards = None
예제 #7
0
 def __init__(self, cluster_document):
     Cluster.__init__(self, cluster_document)
     self._config_members = self._resolve_members("configServers")
     self._shards = self._resolve_shard_members()
예제 #8
0
 def __init__(self, cluster_document):
     Cluster.__init__(self, cluster_document)
     self._config_servers = None
     self._shards = None
예제 #9
0
 def __init__(self):
     Cluster.__init__(self)
     self._load_pdu_devices()
     self._load_routers()