Fix incorrect cluster health calculation
This commit is contained in:
@ -59,7 +59,7 @@ def getClusterHealthFromFaults(zkhandler):
|
|||||||
key=lambda x: (x["health_delta"], x["last_reported"]),
|
key=lambda x: (x["health_delta"], x["last_reported"]),
|
||||||
reverse=True,
|
reverse=True,
|
||||||
):
|
):
|
||||||
cluster_health_value = -fault["health_delta"]
|
cluster_health_value -= fault["health_delta"]
|
||||||
message = {
|
message = {
|
||||||
"id": fault["id"],
|
"id": fault["id"],
|
||||||
"health_delta": fault["health_delta"],
|
"health_delta": fault["health_delta"],
|
||||||
|
Reference in New Issue
Block a user