Ejemplo n.º 1
0
 def __init__(self):
     self.lease_duration = 2.0
     self.tlog_entries_per_tlog = 1000
     self.node_names = [ "sturdy_0", "sturdy_1", "sturdy_2" ]
     self.cluster_id = 'sturdy'
     self.key_format_str = "key_%012d"
     self.value_format_str = "value_%012d"
     self.data_base_dir = None
     self.binary_full_path = ArakoonManagement.which_arakoon()
     self.nursery_nodes = {
         'nurse_0' : [ 'nurse_0_0', 'nurse_0_1', 'nurse_0_2'],
         'nurse_1' : [ 'nurse_1_0', 'nurse_1_1', 'nurse_1_2'],
         'nurse_2' : [ 'nurse_2_0', 'nurse_2_1', 'nurse_2_2']
         }
     self.nursery_cluster_ids = self.nursery_nodes.keys()
     self.node_client_base_port = 7080
     self.node_msg_base_port = 10000
     self.nursery_keeper_id = self.nursery_cluster_ids[0]
     self.node_ips = [ "127.0.0.1", "127.0.0.1", "127.0.0.1"]
Ejemplo n.º 2
0
def _getCluster( c_id = None):
    if c_id is None:
        c_id = cluster_id
    mgmt = ArakoonManagement.ArakoonManagement()
    return mgmt.getCluster(c_id)
Ejemplo n.º 3
0
 def setUp(self):  #pylint: disable-msg=C0103
     self.cluster = ArakoonManagement.ArakoonCluster('tls_test')
     config = self.cluster._getConfigFile()  #pylint: disable-msg=W0212
     config.add_section('global')
     config.set('global', 'cluster_id', 'tls_test')
     X.writeConfig(config, self.cluster._getConfigFileName())