当前位置: 首页>>代码示例>>Python>>正文


Python ClusterOperationHelper.wait_for_ns_servers_or_assert方法代码示例

本文整理汇总了Python中lib.membase.helper.cluster_helper.ClusterOperationHelper.wait_for_ns_servers_or_assert方法的典型用法代码示例。如果您正苦于以下问题:Python ClusterOperationHelper.wait_for_ns_servers_or_assert方法的具体用法?Python ClusterOperationHelper.wait_for_ns_servers_or_assert怎么用?Python ClusterOperationHelper.wait_for_ns_servers_or_assert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lib.membase.helper.cluster_helper.ClusterOperationHelper的用法示例。


在下文中一共展示了ClusterOperationHelper.wait_for_ns_servers_or_assert方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: reboot_server

# 需要导入模块: from lib.membase.helper.cluster_helper import ClusterOperationHelper [as 别名]
# 或者: from lib.membase.helper.cluster_helper.ClusterOperationHelper import wait_for_ns_servers_or_assert [as 别名]
 def reboot_server(self, server):
     remote_client = RemoteMachineShellConnection(server)
     remote_client.reboot_node()
     remote_client.disconnect()
     # wait for restart and warmup on all node
     self.sleep(self.wait_timeout * 5)
     # disable firewall on these nodes
     self.stop_firewall_on_node(server)
     # wait till node is ready after warmup
     ClusterOperationHelper.wait_for_ns_servers_or_assert([server], self, wait_if_warmup=True)
开发者ID:membase,项目名称:testrunner,代码行数:12,代码来源:eventing_base.py

示例2: kill_erlang_service

# 需要导入模块: from lib.membase.helper.cluster_helper import ClusterOperationHelper [as 别名]
# 或者: from lib.membase.helper.cluster_helper.ClusterOperationHelper import wait_for_ns_servers_or_assert [as 别名]
 def kill_erlang_service(self, server):
     remote_client = RemoteMachineShellConnection(server)
     os_info = remote_client.extract_remote_info()
     log.info("os_info : {0}", os_info)
     if os_info.type.lower() == "windows":
         remote_client.kill_erlang(os="windows")
     else:
         remote_client.kill_erlang()
     remote_client.start_couchbase()
     remote_client.disconnect()
     # wait for restart and warmup on all node
     self.sleep(self.wait_timeout * 2)
     # wait till node is ready after warmup
     ClusterOperationHelper.wait_for_ns_servers_or_assert([server], self, wait_if_warmup=True)
开发者ID:membase,项目名称:testrunner,代码行数:16,代码来源:eventing_base.py

示例3: tear_down_cluster

# 需要导入模块: from lib.membase.helper.cluster_helper import ClusterOperationHelper [as 别名]
# 或者: from lib.membase.helper.cluster_helper.ClusterOperationHelper import wait_for_ns_servers_or_assert [as 别名]
 def tear_down_cluster(self):
     self.log.info("tearing down cluster")
     ClusterOperationHelper.cleanup_cluster(self.input.servers)
     ClusterOperationHelper.wait_for_ns_servers_or_assert(self.input.servers,
                                                          self)
     self.log.info("Cluster teared down")
开发者ID:,项目名称:,代码行数:8,代码来源:

示例4: tear_down_cluster

# 需要导入模块: from lib.membase.helper.cluster_helper import ClusterOperationHelper [as 别名]
# 或者: from lib.membase.helper.cluster_helper.ClusterOperationHelper import wait_for_ns_servers_or_assert [as 别名]
 def tear_down_cluster(self):
     print "[perf.tearDown] Tearing down cluster"
     ClusterOperationHelper.cleanup_cluster(self.input.servers)
     ClusterOperationHelper.wait_for_ns_servers_or_assert(self.input.servers,
                                                          self)
     print "[perf.tearDown] Cluster teared down"
开发者ID:mschoch,项目名称:testrunner,代码行数:8,代码来源:perf.py


注:本文中的lib.membase.helper.cluster_helper.ClusterOperationHelper.wait_for_ns_servers_or_assert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。