Our goal is to find out how to reduce memory consumption of elasticsearch and for that I checked
our use of fielddata cache.
I understand that fielddata cache is used to store aggregations and sorting results.
In my application we use sorting very much and not so much aggregation queries.
I ran this query:
GET /events/_search
{
"sort" :
{ "timestamp" : {"order" : "asc"}}
}
and this query
GET /events/_search
{
"sort" :
{ "id" : {"order" : "asc"}}
, "size": 1000
}
and got results.
After that I checked the fielddata cache and got
{
"_shards": {
"total": 3,
"successful": 3,
"failed": 0
},
"_all": {
"primaries": {
"fielddata": {
"memory_size_in_bytes": 0,
"evictions": 0,
"fields": {
"_parent": {
"memory_size_in_bytes": 0
}
}
}
},
"total": {
"fielddata": {
"memory_size_in_bytes": 0,
"evictions": 0,
"fields": {
"_parent": {
"memory_size_in_bytes": 0
}
}
}
}
},
"indices": {
"events": {
"primaries": {
"fielddata": {
"memory_size_in_bytes": 0,
"evictions": 0,
"fields": {
"_parent": {
"memory_size_in_bytes": 0
}
}
}
},
"total": {
"fielddata": {
"memory_size_in_bytes": 0,
"evictions": 0,
"fields": {
"_parent": {
"memory_size_in_bytes": 0
}
}
}
}
}
}
}
So fielddata cache is not used? Why is that?
Thank you