How can I know which nodes in a cluster are actual master nodes?

curious1

I use ES 2.2.0. and have a cluster of nodes. I would like to know which node or nodes are actual master ones. How can I do that?

I tried the following ways:

curl http://my_computer:9200/_cluster/state?pretty
curl http://my_computer:9200/_nodes?pretty

and I was unable to find which node is master.

Val

There is only ever one single master in a cluster, chosen among the set of master-eligible nodes.

You can either run the /_cat/master command or the /_cat/nodes command.

The former will yield something like this

% curl 'localhost:9200/_cat/master?v'
id                     ip            node
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 Solarr

and the latter command will yield the list of nodes with the master column (m for short). Nodes with m are master-eligible nodes and the one with the * is the current master.

% curl 192.168.56.10:9200/_cat/nodes?v&h=id,ip,port,v,m
id   ip            port version m
pLSN 192.168.56.30 9300 2.2.0   m
k0zy 192.168.56.10 9300 2.2.0   m
6Tyi 192.168.56.20 9300 2.2.0   *

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Akka: How to find the current nodes in a cluster?

From Dev

Can consumer groups span different nodes in a cluster?

From Dev

How can I combine child nodes with JSX?

From Dev

How to manually cluster nodes on elasticsearch

From Dev

How can I recursively get all connected nodes of graph, which can contain cycles?

From Dev

elasticsearch - can I use multiple "master" nodes? why?

From Dev

Sort nodes that know their neighbours, but not which side they're on

From Dev

How can I build a ThreadId given that I know the actual number?

From Dev

How to determine number of eligible master nodes for Elasticsearch?

From Dev

How can I create a MongoDB cluster using multiple/three nodes/servers/machines using a single shell script?

From Dev

How to know which nodes in a graph are removable

From Dev

Understand Spark: Cluster Manager, Master and Driver nodes

From Dev

How to programmatically determine the number of nodes in a Cassandra Cluster?

From Dev

discovery.zen.minimum_master_nodes value for a cluster of two nodes

From Dev

How to determine the number of nodes in a Redshift cluster?

From Dev

Spark cluster with two master nodes. Is it possible?

From Dev

How can I distribute a deployment across nodes?

From Dev

How can I update ehcache on multiple nodes?

From Dev

How can I combine child nodes with JSX?

From Dev

How to manually cluster nodes on elasticsearch

From Dev

Can I change nodes hierarchy?

From Dev

How to know how many nodes in a Cassandra cluster?

From Dev

How can I write a bash script that waits for other nodes in a cluster?

From Dev

In the as.party function how can I clarify which are the indices for the different nodes?

From Dev

how can i know which button is cliked

From Dev

Choosing a different vm type for cluster master and resizing number of nodes

From Dev

How can I select nodes that don't contain links but which do contain specific text using xpath

From Dev

How to know which nodes does one cache entry reside

From Dev

How many actors can be created in service fabric cluster nodes

Related Related

  1. 1

    Akka: How to find the current nodes in a cluster?

  2. 2

    Can consumer groups span different nodes in a cluster?

  3. 3

    How can I combine child nodes with JSX?

  4. 4

    How to manually cluster nodes on elasticsearch

  5. 5

    How can I recursively get all connected nodes of graph, which can contain cycles?

  6. 6

    elasticsearch - can I use multiple "master" nodes? why?

  7. 7

    Sort nodes that know their neighbours, but not which side they're on

  8. 8

    How can I build a ThreadId given that I know the actual number?

  9. 9

    How to determine number of eligible master nodes for Elasticsearch?

  10. 10

    How can I create a MongoDB cluster using multiple/three nodes/servers/machines using a single shell script?

  11. 11

    How to know which nodes in a graph are removable

  12. 12

    Understand Spark: Cluster Manager, Master and Driver nodes

  13. 13

    How to programmatically determine the number of nodes in a Cassandra Cluster?

  14. 14

    discovery.zen.minimum_master_nodes value for a cluster of two nodes

  15. 15

    How to determine the number of nodes in a Redshift cluster?

  16. 16

    Spark cluster with two master nodes. Is it possible?

  17. 17

    How can I distribute a deployment across nodes?

  18. 18

    How can I update ehcache on multiple nodes?

  19. 19

    How can I combine child nodes with JSX?

  20. 20

    How to manually cluster nodes on elasticsearch

  21. 21

    Can I change nodes hierarchy?

  22. 22

    How to know how many nodes in a Cassandra cluster?

  23. 23

    How can I write a bash script that waits for other nodes in a cluster?

  24. 24

    In the as.party function how can I clarify which are the indices for the different nodes?

  25. 25

    how can i know which button is cliked

  26. 26

    Choosing a different vm type for cluster master and resizing number of nodes

  27. 27

    How can I select nodes that don't contain links but which do contain specific text using xpath

  28. 28

    How to know which nodes does one cache entry reside

  29. 29

    How many actors can be created in service fabric cluster nodes

HotTag

Archive