Correct way to send data to ES cluster

You should always aim to have 3 master eligible nodes, so do not remove the dedicated master node. This allows Elasticsearch to elect a master even if one node is unavailable, which it is not if there are only 2 nodes in the cluster.