I am just confuse that what exactly does master node do in cluster
According to my understanding it just maintain cluster state and each data node have cluster state information.
From this documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html#cluster-state-api-desc
According to the above link
The role of master node is to maintain cluster state
And in this link https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#master-node
The master node is responsible for lightweight cluster-wide actions such as creating or deleting an index, tracking which nodes are part of the cluster, and deciding which shards to allocate to which nodes. It is important for cluster health to have a stable master node.
Both are correct but what makes me confuse that does master node actually create or delete the index ?