本文整理汇总了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)
示例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)
示例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")
示例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"