Cross Cluster Search
配置:
put _cluster/settings
{
"persistent": {
"cluster": {
"remote":{
"cluster_one": {
"seeds": ["127.0.0.1:9300"]
},
"cluster_two": {
"seeds": ["127.0.0.1:9301"]
}
}
}
}
}
查询
GET /cluster_one:tmdb,movies/search
{
"query":{
"match":{
"title": "matrix"
}
}
}
跳过不可用的remote cluster
PUT _cluster/settings
{
"persistent": {
"cluster.remote.cluster_two.skip_unavaliable": true
}
}
参考:https://blog.csdn.net/u013200380/article/details/109285330