def cluster_status(es): cluster = ClusterClient(es) print "\nCLUSTER HEALTH" pprint(cluster.health()) print "\nPENDING TASKS" pprint(cluster.pending_tasks()) print "\nNODES" for node in get_nodes_info(es): print node.name, node.docs print "\nSHARD ALLOCATION" cat = CatClient(es) print cat.allocation(v=True)
def cluster_status(es): cluster = ClusterClient(es) print("\nCLUSTER HEALTH") pprint(cluster.health()) print("\nPENDING TASKS") pprint(cluster.pending_tasks()) print("\nNODES") for node in get_nodes_info(es): print(node.name, node.docs) print("\nSHARD ALLOCATION") cat = CatClient(es) print(cat.allocation(v=True))
def pending_tasks(es): cluster = ClusterClient(es) pprint(cluster.pending_tasks())
def pending_tasks(es): cluster = ClusterClient(es) pprint(cluster.pending_tasks())