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

elasticsearch

Solution

Answer 1) You cannot have more than one master node.

Answer 2) Consider you have 3 nodes n1, n2 and n3 that all contain data, and currently n1 is selected as the master master node. If you query in n2 node the query will be distributed to all corresponding shards of indexes[replica shard or primary shard]. The result from each shards are combined and return back to you (see the query phase docs).

It's not necessary to distribute the query by master node. Any node data or master or non data node can act as router[Distributing search queries].

Answer 3) yes the master node can be small if the node does not contain data because it need not take care of data management.Its only work is to just route the queries to corresponding nodes and return the result to you. If the master node contains data then you should have configuration more than a data node because it has 2 jobs [data management,routing query]..

Problem

Can I use multiple nodes as cluster master? Why should I do this? Maybe for distributing queries? Another question: can master node be a smallest machine than data nodes? My current cluster is: ``` n1 - 8gb ram, 4 cpu - (x) master - ( ) data n2 - 4gb ram, 2 cpu - ( ) master - (x) data n3 - 4gb ram, 2 cpu - ( ) master - (x) data n4 - 4gb ram, 2 cpu - ( ) master - (x) data n5 - 4gb ram, 2 cpu - ( ) master - (x) data ``` All my queries are sent to N1, and I see in HTOP that master node is always easily and fresh CPU/RAM usage and data nodes gets most of cpu/ram usage.

Original source

Related problems