예제 #1
0
파일: test1.py 프로젝트: zmoon111/beanseye
 def setUp(self):
     self._init_dir()
     if os.path.exists(self.accesslog):
         os.remove(self.accesslog)
     if os.path.exists(self.errorlog):
         os.remove(self.errorlog)
     self.backend1 = BeansdbInstance(self.data_base_path, 57901)
     self.backend2 = BeansdbInstance(self.data_base_path, 57902)
     self.backend3 = BeansdbInstance(self.data_base_path, 57903)
     self.backend1.start()
     self.backend2.start()
     self.backend3.start()
     # start 3 backend, no additional temporary node
     proxy_conf = {
             'servers': [
                 self.backend1_addr + ' F E D C B A 9 8 7 6 5 4 3 2 1 0',
                 self.backend2_addr + ' F E D C B A 9 8 7 6 5 4 3 2 1 0',
                 self.backend3_addr + ' F E D C B A 9 8 7 6 5 4 3 2 1 0',
             ],
             'port': 7905,
             'webport': 7908,
             'threads': 8,
             'n': 3,
             'w': 2,
             'r': 1,
             'buckets': 16,
             'slow': 100,
             'listen': '0.0.0.0',
             'proxies': [self.proxy_addr],
         }
     self.proxy_p = self._start_proxy(proxy_conf)
예제 #2
0
    def setUp(self):
        self._clear_dir()
        self._init_dir()
        self.backend1 = BeansdbInstance(self.data_base_path, 57901)

        self.last_pos = 0
        self.last_size = 0
예제 #3
0
 def setUp(self):
     self._clear_dir()
     self._init_dir()
     self.backend1 = BeansdbInstance(self.data_base_path, 57901, db_depth=2)
예제 #4
0
 def setUp(self):
     self._clear_dir()
     self._init_dir()
     self.backend1 = BeansdbInstance(self.data_base_path, 57901, accesslog=False, max_data_size=10)