0
votes

I have two webservers, each with their own installation of Elasticsearch. Both these webservers have a shared folder on their D: drive.

I want to use the same data folder so that I have one set of indexes and each elasticsearch install uses those same indexes, rather than having 2 sets, one on each server.

Therefore I have changed the 'path.data' location in both elasticsearch.yml files to point to the same shared folder.

Problem is, only one webserver is able to retrieve data for queries, the other server just returns nothing when running a search query.

Am I missing a config setting?

1

1 Answers

0
votes

Are the two Elasticsearch Nodes in the same cluster ?

Each node writes to its own folder even though they share the same base directory. As it is, seems you have two distinct Elasticsearch instances holding separate data.

Define a cluster and add the two nodes to the cluster which is the proper way to have the same data managed by multiple nodes