개발 일기

Cluster 본문

검색엔진/elastic search

Cluster

이건욱

Cluster 상태 체크

curl -XGET localhost:9200/_cluster/health?pretty=true

 

처음에는 Cluster 상태가 Yellow 입니다. 그 이유는 replica 가 primary당 하나가 존재하는데 현재는 하나의 노드가 실행중이므로 replica를 배정할수가 없어서 생기고 있습니다.

 

따라서 나중에 다른 노드가 포함이 되면 Green Status로 변경이 됩니다.

 

추가를 안하고 Green으로 변경하고 싶으면

 

curl -XPUT 'localhost:9200/_settings?pretty' -d '{"index":{"number_of_replicas": 0}}' -H 'Content-Type: application/json'

replica을 0으로 만드는 방법이 있습니다.

 

index 정보 조회 :)

curl -XGET localhost:9200/_cat/indices?v

shard 정보 조회 :)

curl -XGET localhost:9200/_cat/shards?v

'검색엔진 > elastic search' 카테고리의 다른 글

Elastic 검색 방법  (0) 2020.04.08
Elastic Search 용어 정의 :)  (0) 2020.04.05
Elastic Search 설치  (0) 2020.04.04
Comments