Ejemplo n.º 1
0
def use_inactive_nodes():
    """Operate on inactive nodes: not current per cluster id sequence, not behind load balancer / virtual IP."""
    for node in classify_nodes()[INACTIVE]:
        use(node)
Ejemplo n.º 2
0
def use_orphan_nodes():
    """Operate on orphan nodes: current per cluster id sequence, but not behind load balancer / virtual IP."""
    for node in classify_nodes()[ORPHAN]:
        use(node)
Ejemplo n.º 3
0
def use_extra_nodes():
    """Operate on extra nodes: not current per cluster id sequence, but behind load balancer."""
    for node in classify_nodes()[EXTRA]:
        use(node)