본문 바로가기
배우고 있습니다/elastic-search

[Elastic Search] cross cluster search remote remove

by 유헤 2019. 4. 12.

cross cluster search 를 설정하는 경우는 

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cross-cluster-search.html

 

Cross-cluster search | Elasticsearch Reference [7.0] | Elastic

The cross-cluster search feature allows any node to act as a federated client across multiple clusters. A cross-cluster search node won’t join the remote cluster, instead it connects to a remote cluster in a light fashion in order to execute federated sear

www.elastic.co

엘라스틱 홈페이지에 친절히 나와 있는데요.

 

두 클러스터 연결을 해제 하는 방법에 대해 알아보겠습니다.

 


PUT _cluster/settings
{
  "persistent": {
    "cluster": {
      "remote": {
        "cluster_one": {
          "seeds": [
            "A.A.A.A:PORT-A"
          ]
        },
        "cluster_two": {
          "seeds": [
                  "B.B.B.B:PORT-B" 
          ]
        }
      }
    }
  }
}

PUT _cluster/settings
{
  "persistent": {
    "search": {
      "remote": {
        "cluster_two": {
          "seeds": null 
        }
      }
    }
  }
}

 

이런식으로 해제하고 싶은 클러스터에 NULL 값을 부여하고 GET /_remote/info 로 확인 해보면

클러스터 연결이 해제된 것을 볼 수 있습니다.

 

https://discuss.elastic.co/t/how-to-delete-elasticsearch-cross-cluster-search-seed-5-5-1-1/96459

 

How to delete elasticsearch cross cluster search seed 5.5.1-1

I'm running elasticsearch 5.5.1-1 and x-pack for monitoring. Elasticsearch's documentation say's I should be able to add the following code to my elasticsearch.yml file for cross cluster search seeding: search: remote: cluster_one: seeds: 1.1.1.1:9300 clus

discuss.elastic.co