728x90

Elasticsearch 4

this action would add [1] total shards, but this cluster currently has [1000]/[1000] maximum shards open

보통 kibana에서 elasticsearch 로그를 가져와서 화면에 보여주곤 한다. 갑자기 kibana에서 특정 index 값이 나오지 않는다면 elastic 서버에 접속해서 로그를 확인해 보면 아래 오류 메시지가 발생하는 경우가 있다, 오류내용 this action would add [1] total shards, but this cluster currently has [1000]/[1000] maximum shards open 해당 내용은 elasticsearch에서 사용하는 shard max값이 1000개인데 현재 shard를 다 사용했다는 뜻이다. 해결 방법은 간단하다. shard의 갯수를 늘려주면 된다. Trouble Shooting 방법 #현재 shard 확인 curl --user '{id}..

Elasticsearch 2023.06.22

Elasticsearch index restore (부분, 전체 복원 방법)

1. 서버에서 curl 명령어를 통해 복원하기 #전체 복구하기 curl --user '{user}:{password}' --header "content-type: application/JSON" -XPOST 'localhost:9200/_snapshot/{snapshot_name}/{backup_key}/_restore?wait_for_completion=true' #인덱스 지정 복구하기 curl --user '{user}:{password}' --header "content-type: application/JSON" -XPOST 'localhost:9200/_snapshot/{snapshot_name}/{backup_key}/{index_name}/_restore?wait_for_completion=t..

Elasticsearch 2023.05.18

Elasticsearch index backup(NCP Storage 기준)

AWS S3를 통해 elasticsearch index를 백업받는 부분은 아래 링크를 참고하시길 바란다. https://babbeolicoding.tistory.com/33 Elasticsearch index backup(AWS S3 사용) 1. Elasticsearch config 수정 - jvm.options - elasticsearch.yml 각 config 위치에 아래 값 추가 - vim config/jvm.options => Des.allow_insecure_settings=true - vim config/elasticsearch.yml => network.host: 0.0.0.0 2. S3 플러그인 설치(elasticse babbeolicoding.tistory.com ​ AWS 뿐 아니라 N..

Elasticsearch 2023.05.17

Elasticsearch index backup(AWS S3 사용)

1. Elasticsearch config 수정 - jvm.options - elasticsearch.yml 각 config 위치에 아래 값 추가 - vim config/jvm.options => Des.allow_insecure_settings=true - vim config/elasticsearch.yml => network.host: 0.0.0.0 2. S3 플러그인 설치(elasticsearch 재시작 필요) #elasticbsearch 설치된 경로에서 실행 /usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 #elasticsearch s3 플러그인 삭제 /usr/share/elasticsearch/bin/elastics..

Elasticsearch 2023.05.16
728x90