It often makes more sense to use multiple Elasticsearch clusters instead of a single behemoth cluster, particularly when you are working with different types of data. When you use multiple clusters, Elasticsearch still allows you to search all of your data at once using cross-cluster search. In this hands-on lab, you will:
* Configure cross-cluster search between 3 clusters
* Execute searches against multiple clusters in a single request
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure cross-cluster search on the “accounts_1” cluster.
Use the Kibana console tool to execute the following:
PUT _cluster/settings { "persistent": { "cluster": { "remote": { "accounts_2": { "seeds": [ "10.0.1.103:9300" ] }, "accounts_3": { "seeds": [ "10.0.1.105:9300" ] } } } } }
- Search all 3,000 documents across the 3 clusters without returning any documents.
Use the Kibana console tool to execute the following:
GET bank,accounts_2:bank,accounts_3:bank/_search?size=0