示例#1
0
 async def start(self):
     await checkNodesConnected(self.nodes)
     timeout = plenumWaits.expectedPoolStartUpTimeout(len(self.nodes))
     await eventually(checkNodesAreReady,
                      self.nodes,
                      retryWait=.25,
                      timeout=timeout,
                      ratchetSteps=10)
示例#2
0
 async def start(self):
     await checkNodesConnected(self.nodes)
     timeout = plenumWaits.expectedPoolStartUpTimeout(len(self.nodes))
     await eventually(checkNodesAreReady,
                      self.nodes,
                      retryWait=.25,
                      timeout=timeout,
                      ratchetSteps=10)
示例#3
0
def checkPoolReady(looper: Looper,
                   nodes: Sequence[TestNode],
                   customTimeout=None):
    """
    Check that pool is in Ready state
    """

    timeout = customTimeout or waits.expectedPoolStartUpTimeout(len(nodes))
    looper.run(
        eventually(checkNodesAreReady, nodes,
                   retryWait=.25,
                   timeout=timeout,
                   ratchetSteps=10))
示例#4
0
def checkPoolReady(looper: Looper,
                   nodes: Sequence[TestNode],
                   customTimeout=None):
    """
    Check that pool is in Ready state
    """

    timeout = customTimeout or waits.expectedPoolStartUpTimeout(len(nodes))
    looper.run(
        eventually(checkNodesAreReady, nodes,
                   retryWait=.25,
                   timeout=timeout,
                   ratchetSteps=10))
示例#5
0
def waitAllNodesUp(cli):
    timeout = waits.expectedPoolStartUpTimeout(len(cli.nodes))
    cli.looper.run(eventually(checkAllNodesUp, cli, timeout=timeout))