본문 바로가기
Computer/Elasticsearch

Field data

by hexists 2015. 5. 6.

Field data: http://www.elastic.co/guide/en/elasticsearch/reference/1.4/index-modules-fielddata.html


field data cache는 주로 field에 대해 sorting 또는 faceting에 사용된다.

그것은 value에  문서기반으로 빨리 접근할 수 있도록 field values은 메모리로 읽는다.

field data cache는 비용이 많이 들 수 있다. 그래서 충분한 메모리를 사용할 수 있을 때 있을 때 추천되고, 그것은 load를 유지한다.


field data cache에서 사용할 메모리 크기는 indices.fielddata.cache.size에서 설정할 수 있다.

참고로, cache가 적절하지 않다면 field data를 다시 읽어와야 하고, 그 값은 비싸고, 매우 느리게 수행된다.


indices.fielddata.cache.size는 %, GB으로 설정할 수 있으며, 기본 값은 unbounded이다.

indices.fielddata.cache.expire는 시간을 기반으로 expire를 설정할 수 있다. 기본값은 -1이고, 5m 처럼 설정할 수 있다.


Field data Circuit Breaker의 기본값은 JVM Heap size의 60%이다.


indices.breaker.fielddata.limit: 기본값 60%

indices.breaker.fielddata.overhead: 기본값 1.03


field data statistics는 아래 처럼 확인할 수 있다.

http://www.elastic.co/guide/en/elasticsearch/reference/1.4/cluster-nodes-stats.html


# Node Stats

curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field1,field2&pretty'


# Indices Stat

curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field1,field2&pretty'


# You can use wildcards for field names

curl -XGET 'http://localhost:9200/_stats/fielddata/?fields=field*&pretty'

curl -XGET 'http://localhost:9200/_nodes/stats/indices/?fields=field*&pretty'


elastics.co에 있는 문서를 번역한 내용입니다.
개인 참고용으로 작성했습니다.


'Computer > Elasticsearch' 카테고리의 다른 글

elasticsearch thread pool  (0) 2015.05.07
doc values  (0) 2015.05.06
eager, eager global ordinals  (1) 2015.05.06
shard 상태 확인  (0) 2015.03.09
Elasticsearch Korea User Group  (0) 2015.02.09