Exemplo n.º 1
0
    def setUp(self):
        """
        Prepares a cluster for tests of the repair history tables by starting
        a 5-node cluster, then inserting 5000 values with RF=3.
        """

        Tester.setUp(self)
        self.cluster.populate(5).start(wait_for_binary_proto=True)
        self.node1 = self.cluster.nodelist()[0]
        self.session = self.patient_cql_connection(self.node1)

        self.node1.stress(stress_options=['write', 'n=5000', 'cl=ONE', '-schema', 'replication(factor=3)'])

        self.cluster.flush()
    def setUp(self):
        Tester.setUp(self)
        cluster = self.cluster
        cluster.schema_event_refresh_window = 0

        if cluster.version() >= '3.0':
            cluster.set_configuration_options({'enable_user_defined_functions': 'true',
                                               'enable_scripted_user_defined_functions': 'true'})
        elif cluster.version() >= '2.2':
            cluster.set_configuration_options({'enable_user_defined_functions': 'true'})
        cluster.populate(1).start()

        self.session = self.patient_cql_connection(cluster.nodelist()[0])
        self.create_ks(self.session, 'ks', 1)
Exemplo n.º 3
0
    def setUp(self):
        """
        Prepares a cluster for tests of the repair history tables by starting
        a 5-node cluster, then inserting 5000 values with RF=3.
        """

        Tester.setUp(self)
        self.cluster.populate(5).start(wait_for_binary_proto=True)
        self.node1 = self.cluster.nodelist()[0]
        self.session = self.patient_cql_connection(self.node1)

        self.node1.stress(stress_options=['write', 'n=5K', 'no-warmup', 'cl=ONE', '-schema', 'replication(factor=3)'])

        self.cluster.flush()
    def setUp(self):
        Tester.setUp(self)
        cluster = self.cluster
        cluster.schema_event_refresh_window = 0

        if cluster.version() >= '3.0':
            cluster.set_configuration_options({'enable_user_defined_functions': 'true',
                                               'enable_scripted_user_defined_functions': 'true'})
        elif cluster.version() >= '2.2':
            cluster.set_configuration_options({'enable_user_defined_functions': 'true'})
        cluster.populate(1).start()

        self.session = self.patient_cql_connection(cluster.nodelist()[0])
        self.create_ks(self.session, 'ks', 1)
Exemplo n.º 5
0
    def setUp(self):
        Tester.setUp(self)
        self.cluster.populate(3).start(wait_for_binary_proto=True)
        self.node1 = self.cluster.nodelist()[0]
        self.node2 = self.cluster.nodelist()[1]
        self.node3 = self.cluster.nodelist()[2]
        self.session = self.patient_cql_connection(self.node1)

        cursor = self.patient_exclusive_cql_connection(self.node1)

        cursor.execute("CREATE KEYSPACE ks WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 2}")
        cursor.execute("""
            CREATE TABLE ks.cf (
                key    int primary key,
                value  double,
                txt    text
            );
        """)
Exemplo n.º 6
0
    def setUp(self):
        Tester.setUp(self)
        self.cluster.populate(3).start(wait_for_binary_proto=True)
        self.node1 = self.cluster.nodelist()[0]
        self.node2 = self.cluster.nodelist()[1]
        self.node3 = self.cluster.nodelist()[2]
        self.session = self.patient_cql_connection(self.node1)

        session = self.patient_exclusive_cql_connection(self.node1)

        session.execute(
            "CREATE KEYSPACE ks WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 2}"
        )
        session.execute("""
            CREATE TABLE ks.cf (
                key    int primary key,
                value  double,
                txt    text
            );
        """)
Exemplo n.º 7
0
 def setUp(self):
     Tester.setUp(self)
     self.cluster.set_configuration_options(values={'hinted_handoff_enabled': False})
     self.cluster.populate(3).start(wait_for_binary_proto=True)
Exemplo n.º 8
0
 def setUp(self):
     Tester.setUp(self)
     self.cluster.set_configuration_options(
         values={'hinted_handoff_enabled': False})
     self.cluster.populate(3).start(wait_for_binary_proto=True)
Exemplo n.º 9
0
 def setUp(self):
     Tester.setUp(self)
     # compaction test for version 2.2.2 and above relies on DEBUG log in debug.log
     self.cluster.set_log_level("DEBUG")
Exemplo n.º 10
0
 def setUp(self):
     Tester.setUp(self)
     # compaction test for version 2.2.2 and above relies on DEBUG log in debug.log
     self.cluster.set_log_level("DEBUG")
Exemplo n.º 11
0
 def setUp(self):
     Tester.setUp(self)
     self.cluster.populate(3).start(wait_for_binary_proto=True)