Skip to content

Commit 060befd

Browse files
docs: fix leader node readiness probe example [skip ci]
Add the missing SERVER_ACTIVE state to the readiness probe. Without this, a node that is ready to accept RPC calls would be incorrectly considered not ready.
1 parent b7c59b3 commit 060befd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/leader_election.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ readinessProbe:
8989
command: [
9090
"/bin/sh",
9191
"-c",
92-
"set -e; set -o pipefail; curl -s -k -o - https://localhost:8080/v1/state | jq .'State' | grep -E 'NON_EXISTING|LOCKED|UNLOCKED|RPC_ACTIVE'",
92+
"set -e; set -o pipefail; curl -s -k -o - https://localhost:8080/v1/state | jq .'State' | grep -E 'NON_EXISTING|LOCKED|UNLOCKED|RPC_ACTIVE|SERVER_ACTIVE'",
9393
]
9494
periodSeconds: 1
9595
```

0 commit comments

Comments
 (0)