Hi! I have a clean and simple installation os ES:
9 nodes: 6 data and 3 masters(without data).
I want to determine situation when one of masters gone for some reason(power off).
How I can do it on 7 ES? I looked at
/_nodes endpoints and documentation, but failed to found answers.
Endpoints above show only available nodes and didn't show powered off nodes.
On previous version os ES(6) I could do it easily:
- Get minimum_master_nodes property from
- Get all nodes, count masters, and compare them with minimum_master_nodes.
If count of masters wich I get from API <= minimum_master_nodes, so, some master nodes down.
From version 7 there are no options
How I can do something similar?
P.S. It would be great to do this check without hardcode master nodes(or their count) somewhere. And sorry for my English