Elasticsearch/elasticsearch (2) 썸네일형 리스트형 Index Lifecycle Management [1. 개요]Index Lifecycle Management (이하 ILM) 에 관하여 정리한다.ILM 은 4단계로 구성 된다.HotWarmColdDelete[2. Hot phase] [2. Warm phase]이 단계에서는 보통 index 에 더 이상 write 가 거의 발생하지 않는다고 볼 수 있다.warm phase 를 40일 정도 뒤에 되도록 설정하고index 는 월 단위로 rotate 하는 경우라면, write 없이 read 만 발생한다고 볼 수 있다. 여기서 효율적인 read 를 위해 index 의 shard 개수를 shrink 옵션을 통해 조정 할 수 있다. 보통 read 성능 향상을 위해 shard 개수를 줄이는 방향으로 설정함.여기서, 현재 적용 중인 ilm 의 shrink 옵션에서 sh.. shard 재배치 [1. 개요]index 를 구성하는 shard 를 다른 node 로 옮길 필요가 있는 경우가 있을 경우,특정 node 의 disk 를 확보하기 위해,특정 index 의 primary 와 replica shard 가 배치 된 노드를 잠시 중단해야 하는 경우...[2. 절차]옮길 shard 확인 GET _cat/shards index_name / shard_name / shard_type / state / docs_nr / disk_space / ip / node_nameshard 의 stateINITIALIZINGRELOCATINGSTARTEDUNASSIGNEDshard 옮기기POST _cluster/reroute shard 상태 확인GET _cat/shards/{index_name}shard 의 siz.. 이전 1 다음