I have an elasticsearch cluster with three nodes and with this configuration:
cluster.name: my_cluster_name
bootstrap.mlockall: true
indices.recovery.max_bytes_per_sec: 100mb
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["ip_node_1", "ip_node_2"]
path.logs: elasticsearch/logs
path.data: elasticsearch/data
path.work: elasticsearch/work
path.plugins: elasticsearch/plugins
http.cors.enabled: true
http.cors.allow-origin: /.*/
http.cors.allow-credentials: true
index.routing.allocation.disable_allocation: false
This cluster was restarted and in the path
/elasticsearch/data/my_cluster_name/nodes/0/indices
Where elasticsearch save the indices I can see:
ls -las
total 24
4 drwxr-xr-x 6 jdiazg group 4096 Dec 11 09:01 .
4 drwxr-xr-x 4 jdiazg group 4096 Dec 10 14:19 ..
4 drwxr-xr-x 7 jdiazg group 4096 Dec 8 09:29 index_1
4 drwxr-xr-x 5 jdiazg group 4096 Dec 1 03:15 index_2
4 drwxr-xr-x 5 jdiazg group 4096 Nov 20 15:34 index_3
4 drwxr-xr-x 6 jdiazg group 4096 Dec 3 03:42 index_4
and with
du -sh *
514M index_1
48M index_2
420K index_3
332K index_4
in the three nodes, but if I execute:
curl localhost:9200/_cat/indices?v
I am not able to see this old indices and elastic_search don´t recognice when the name of the cluster after restarting is the same.