Transfer the master role?


(Patrick Tucker) #1

We have to take down one of our master nodes, it is the current master, to replace some hardware and are wondering if it is possible to transfer the role prior to shutting down Elasticsearch?

The version of Elasticsearch is 1.7.3.

Thanks,
Pat


(Vincent Tran) #2

You should only have one master node...
You must mean master-eligible. In this case, assuming your cluster is green and that you have at least one replica (or if your master-eligible nodes are exclusively master and contain no data), you can simply shutdown ES on that node and a new master will be elected.


(Patrick Tucker) #3

I am aware that we can take the node down and a new master will be elected. We were just wondering if it is possible to transfer the role prior to shutting down the server to avoid any time where there is no master.

Thanks,
Pat


(Vincent Tran) #4

I fail to see the purpose of this. What are you trying to accomplish (or avoid) with this requirement? There can never be more than one master per cluster at any time. Whether the master promotion occurred manually by a user (if this is supported) or by automatic election, there will always technically be a gap of time (no matter how minute) where the cluster has no master.


(Mark Walkom) #5

The answer is no.


(Patrick Tucker) #6

Thank you!


(system) #7