we have about 2.2B data in our elasticsearch, and we using facet and
function score query on those data.
it will load many data to fielddata, and replica double it.
so my question is how to set replica to make sure it won't use field data
expect primary shard down?
--
You received this
Replica's don't double the amount of field data loaded. A query will only
load what it needs from the shards it needs, but it won't load primary and
replica, just one or the other.
Ideally you should 1) upgrade to aggs, facets are deprecated and not as
performant, and 2) upgrade to doc_values.
Thanks for you replay Mark,
active: {
primaries: {
fielddata: {
memory_size_in_bytes: 77076457764,
evictions: 0,
fields: {
commentsCount: {
memory_size_in_bytes: 2416090508