def multiple_connections_using_memcachetest(self):
     """ server side moxi is removed in spock as in MB-16661 """
     if self.cb_version[:5] in COUCHBASE_FROM_SPOCK:
         self.log.info("From spock, server side moxi is removed."
                       " More information could be found in MB-16661 ")
         return
     shell = RemoteMachineShellConnection(self.master)
     os_type = shell.extract_remote_info()
     if os_type.type != 'Linux':
         return
     mcsoda_items = self.input.param('mcsoda_items', 1000000)
     memcachetest_items = self.input.param('memcachetest_items', 100000)
     moxi_port = self.input.param('moxi_port', 51500)
     self._stop_moxi(self.master, moxi_port)
     self._stop_mcsoda_localy(moxi_port)
     try:
         self._run_moxi(self.master, moxi_port, self.master.ip, "default")
         self._run_mcsoda_localy(self.master.ip,
                                 moxi_port,
                                 "default",
                                 mcsoda_items=mcsoda_items)
         self.sleep(30)
         sd = MemcachetestRunner(self.master, num_items=memcachetest_items, \
                                  extra_params="-W 16 -t 16 -c 0 -M 2")  # MB-8083
         status = sd.start_memcachetest()
         if not status:
             self.fail("see logs above!")
     finally:
         self._stop_mcsoda_localy(moxi_port)
         if 'sd' in locals():
             sd.stop_memcachetest()
Exemplo n.º 2
0
 def multiple_connections_using_memcachetest (self):
     """ server side moxi is removed in spock as in MB-16661 """
     if self.cb_version[:5] in COUCHBASE_FROM_SPOCK:
         self.log.info("From spock, server side moxi is removed."
                       " More information could be found in MB-16661 ")
         return
     shell = RemoteMachineShellConnection(self.master)
     os_type = shell.extract_remote_info()
     if os_type.type != 'Linux':
         return
     mcsoda_items = self.input.param('mcsoda_items', 1000000)
     memcachetest_items = self.input.param('memcachetest_items', 100000)
     moxi_port = self.input.param('moxi_port', 51500)
     self._stop_moxi(self.master, moxi_port)
     self._stop_mcsoda_localy(moxi_port)
     try:
         self._run_moxi(self.master, moxi_port, self.master.ip, "default")
         self._run_mcsoda_localy(self.master.ip, moxi_port, "default",
                                                 mcsoda_items=mcsoda_items)
         self.sleep(30)
         sd = MemcachetestRunner(self.master, num_items=memcachetest_items, \
                                  extra_params="-W 16 -t 16 -c 0 -M 2")  # MB-8083
         status = sd.start_memcachetest()
         if not status:
             self.fail("see logs above!")
     finally:
         self._stop_mcsoda_localy(moxi_port)
         if 'sd' in locals():
             sd.stop_memcachetest()
    def multiple_connections_using_memcachetest (self):

        shell = RemoteMachineShellConnection(self.master)
        os_type = shell.extract_remote_info()
        if os_type.type != 'Linux':
            return
        mcsoda_items = self.input.param('mcsoda_items', 1000000)
        memcachetest_items = self.input.param('memcachetest_items', 100000)
        moxi_port = self.input.param('moxi_port', 51500)
        self._stop_moxi(self.master, moxi_port)
        self._stop_mcsoda_localy(moxi_port)
        try:
            self._run_moxi(self.master, moxi_port, self.master.ip, "default")
            self._run_mcsoda_localy(self.master.ip, moxi_port, "default",
                                                    mcsoda_items=mcsoda_items)
            self.sleep(30)
            sd = MemcachetestRunner(self.master, num_items=memcachetest_items, \
                                     extra_params="-W 16 -t 16 -c 0 -M 2")  # MB-8083
            status = sd.start_memcachetest()
            if not status:
                self.fail("see logs above!")
        finally:
            self._stop_mcsoda_localy(moxi_port)
            if 'sd' in locals():
                sd.stop_memcachetest()
Exemplo n.º 4
0
 def multiple_connections_using_memcachetest (self):
     mcsoda_items = self.input.param('mcsoda_items', 1000000)
     memcachetest_items = self.input.param('memcachetest_items', 100000)
     moxi_port = self.input.param('moxi_port', 51500)
     self.stop_moxi(self.master, moxi_port)
     self.stop_mcsoda_localy(moxi_port)
     try:
         self.run_moxi(self.master, moxi_port, self.master.ip, "default")
         self.run_mcsoda_localy(self.master.ip, moxi_port, "default", mcsoda_items=mcsoda_items)
         self.sleep(30)
         sd = MemcachetestRunner(self.master, num_items=memcachetest_items, extra_params="-W 320 -t 320 -c 0 -M 2")
         status = sd.start_memcachetest()
         if not status:
             self.fail("see logs above!")
     finally:
         self.stop_mcsoda_localy(moxi_port)
         if 'sd' in locals():
             sd.stop_memcachetest()
Exemplo n.º 5
0
 def multiple_connections_using_memcachetest (self):
     mcsoda_items = self.input.param('mcsoda_items', 1000000)
     memcachetest_items = self.input.param('memcachetest_items', 100000)
     moxi_port = self.input.param('moxi_port', 51500)
     self._stop_moxi(self.master, moxi_port)
     self._stop_mcsoda_localy(moxi_port)
     try:
         self._run_moxi(self.master, moxi_port, self.master.ip, "default")
         self._run_mcsoda_localy(self.master.ip, moxi_port, "default", mcsoda_items=mcsoda_items)
         self.sleep(30)
         sd = MemcachetestRunner(self.master, num_items=memcachetest_items, extra_params="-W 320 -t 320 -c 0 -M 2")
         status = sd.start_memcachetest()
         if not status:
             self.fail("see logs above!")
     finally:
         self._stop_mcsoda_localy(moxi_port)
         if 'sd' in locals():
             sd.stop_memcachetest()