- Install elasticsearch on node-1
- Update the elasticsearch.yml for node-1
- Start elasticsearch node-1
- Check the health of nodes
- Run "elasticsearch-create-enrollment-token -s node" on node-1
- Install elasticsearch on node-2
- Run the "elasticsearch-reconfigure-node --enrollment-token " command on node-2 with the token from node-1 (Run the
elasticsearch-reconfigure-node
tool before starting elasticsearch) - Update the elasticsearch.yml for node-2
- Start elasticsearch node-2
Refer to the above two articles. Pay attention to the configuration of http.host
and transport.host
when using multiple network cards."