파워노트

ElasticSearch max_result_window 설정 본문

ElasticSearch

ElasticSearch max_result_window 설정

파워킴 2020. 11. 10. 16:52
반응형

# ElasticSearch 의 조회 기존 size가 10000 이다.

이보다 큰 사이즈를 가져 올때에는  Elasticsearch 에서 처리를 못하고 이후의 데이터를 조회 하지 못한다.

 

 

 

[ 오류 메시지 ]

Caused by: QueryPhaseExecutionException[Batch size is too large, size must be less than or equal to: [30] but was [1000]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting.] .......

 

[ 원인 ]
결과 조회값 설정이 안된 경우.

 

curl -XPUT "http://localhost:9200/menu_prd/_settings" -d '{ 
    "index" : { 
        "max_result_window" : 500000 
    } 
}'

 

 

반응형

'ElasticSearch' 카테고리의 다른 글

bootstrap checks failed vm.max_map_count 관련  (0) 2020.11.27
logstash 기본 사용  (0) 2020.11.26
ElasticSearch index Mapping  (0) 2020.11.10
Elasticsearch 사용법  (0) 2020.11.10
Comments