카페에서 IT 산책 (일반)/Elasticsearch & kibana
Elasticsearch health check (엘라스틱서치 헬스 체크)
카페힐링
2023. 9. 6. 23:01
반응형
1. curl -XGET 'localhost:9200/_cluster/health?pretty'
2. curl -XGET 'localhost:9200/_cat/indices?v'
3. curl -XGET 'localhost:9200/_cat/shards?v'
4. curl -XGET 'localhost:9200/_cat/allocation?v'
5. curl -XGET 'localhost:9200/_cat/shards/{index_name}?v'
1. 클러스터 헬스 체크
- 클러스터는 ES에서 가장 큰 시스템 단위로, node들의 집합
- 최초 ES 설치 시 Cluster와 node는 1개씩 존재
curl -XGET 'localhost:9200/_cluster/health?pretty'
2. indices 헬스 체크
curl -XGET 'localhost:9200/_cat/indices?v'
- 생성된 인덱스 정보를 확인
3. shards 헬스 체크
curl -XGET 'localhost:9200/_cat/shards?v'
4. 클러스터 디스크 현황
curl -XGET 'localhost:9200/_cat/allocation?v'
5. 특정 인덱스의 샤드 상태 확인
curl -XGET 'localhost:9200/_cat/shards/{index_name}?v'
반응형