def setUp(self): self.shard_index = 0 self.replica_tablet = shard_0_replica self.keyspace_fetch_throttle = 1 vtdb_logger.register_vtdb_logger(LocalLogger()) # Lowering the keyspace refresh throttle so things are testable. topology.set_keyspace_fetch_throttle(0.1) self.vtgate_client = zkocc.ZkOccConnection(utils.vtgate.addr(), 'test_nj', 30.0)
def setUp(self): self.shard_index = 0 self.replica_tablet = shard_0_replica self.keyspace_fetch_throttle = 1 vtdb_logger.register_vtdb_logger(LocalLogger()) # Lowering the keyspace refresh throttle so things are testable. topology.set_keyspace_fetch_throttle(0.1) self.vtgate_client = zkocc.ZkOccConnection(utils.vtgate.addr(), 'test_nj', 30.0)
def setUp(self): global vtgate_port self.shard_index = 0 self.replica_tablet = shard_0_replica self.keyspace_fetch_throttle = 1 # Lowering the keyspace refresh throttle so things are testable. topology.set_keyspace_fetch_throttle(0.1) topology.register_topo_fetch_log_callback(count_topo_rtt) self.vtgate_client = zkocc.ZkOccConnection("localhost:%u" % vtgate_port, "test_nj", 30.0)
def setUp(self): global vtgate_port self.shard_index = 0 self.replica_tablet = shard_0_replica self.keyspace_fetch_throttle = 1 vtdb_logger.register_vtdb_logger(LocalLogger()) # Lowering the keyspace refresh throttle so things are testable. topology.set_keyspace_fetch_throttle(0.1) self.vtgate_client = zkocc.ZkOccConnection("localhost:%u" % vtgate_port, "test_nj", 30.0)
def setUp(self): global vtgate_port self.shard_index = 0 self.replica_tablet = shard_0_replica self.keyspace_fetch_throttle = 1 vtdb_logger.register_vtdb_logger(LocalLogger()) # Lowering the keyspace refresh throttle so things are testable. topology.set_keyspace_fetch_throttle(0.1) self.vtgate_client = zkocc.ZkOccConnection("localhost:%u" % vtgate_port, "test_nj", 30.0)
def setUp(self): self.vtgate_server, self.vtgate_port = utils.vtgate_start(cache_ttl='0s') self.vtgate_client = zkocc.ZkOccConnection("localhost:%u"%self.vtgate_port, "test_nj", 30.0) self.vtgate_addrs = None if client_type == VTGATE: self.vtgate_addrs = {"vt": ["localhost:%s"%(self.vtgate_port),]} self.insert_index = 0 # Lowering the keyspace refresh throttle so things are testable. self.throttle_sleep_interval = 0.1 topology.set_keyspace_fetch_throttle(0.01)
def setUp(self): utils.VtGate().start(cache_ttl='0s') self.vtgate_client = zkocc.ZkOccConnection(utils.vtgate.addr(), 'test_nj', 30.0) self.vtgate_addrs = None if client_type == VTGATE: self.vtgate_addrs = {'vt': [utils.vtgate.addr(),]} self.insert_index = 0 # Lowering the keyspace refresh throttle so things are testable. self.throttle_sleep_interval = 0.1 topology.set_keyspace_fetch_throttle(0.01)
def setUp(self): utils.VtGate().start(cache_ttl='0s') self.vtgate_client = zkocc.ZkOccConnection(utils.vtgate.addr(), "test_nj", 30.0) self.vtgate_addrs = None if client_type == VTGATE: self.vtgate_addrs = {"vt": [utils.vtgate.addr(),]} self.insert_index = 0 # Lowering the keyspace refresh throttle so things are testable. self.throttle_sleep_interval = 0.1 topology.set_keyspace_fetch_throttle(0.01)
def setUp(self): self.vtgate_server, self.vtgate_port = utils.vtgate_start(cache_ttl='0s') self.vtgate_client = zkocc.ZkOccConnection("localhost:%u"%self.vtgate_port, "test_nj", 30.0) self.vtgate_addrs = None if vtgate_protocol == VTGATE_PROTOCOL_V1BSON: global vtgate_addrs self.vtgate_addrs = {"_vt": ["localhost:%s"%(self.vtgate_port),]} self.insert_index = 0 # Lowering the keyspace refresh throttle so things are testable. self.throttle_sleep_interval = 0.1 topology.set_keyspace_fetch_throttle(0.01)