I had the OOM problem and resolved by setting option
'index.cache.field.type: soft'.
At now, my query and facet works file.
But I have faced new problem, pool performance.
That's what soft gives you By using soft references, you haven't
solved the OOM problem, you've just forced ES to reload field data all the
time (which is very heavy).
You can set the indices.fielddata.cache.size size to avoid OOMs, but it's a
safety mechanism, not a solution. If you are running out of memory it'll
evict field data, which will affect performance. See
You need more memory, or more nodes, or fewer facets. If you're faceting on
high cardinality string fields, that's going to use a lot of memory.
Instead of using scripts, can you simply index the eventually value of
plays.count? You indexing process would have to contain more logic, but
this logic is only executed once per document and not each time like it is
during a query.
I had the OOM problem and resolved by setting option
'index.cache.field.type: soft'.
At now, my query and facet works file.
But I have faced new problem, pool performance.
That's what soft gives you By using soft references, you haven't
solved the OOM problem, you've just forced ES to reload field data all the
time (which is very heavy).
You can set the indices.fielddata.cache.size size to avoid OOMs, but it's
a safety mechanism, not a solution. If you are running out of memory it'll
evict field data, which will affect performance. See Elasticsearch Platform — Find real-time answers at scale | Elastic
You need more memory, or more nodes, or fewer facets. If you're faceting
on high cardinality string fields, that's going to use a lot of memory.
2013년 10월 19일 토요일 오전 3시 7분 3초 UTC+9, Ivan Brusic 님의 말:
Instead of using scripts, can you simply index the eventually value of
plays.count? You indexing process would have to contain more logic, but
this logic is only executed once per document and not each time like it is
during a query.
Can you provide some sample documents?
Cheers,
Ivan
On Fri, Oct 18, 2013 at 10:34 AM, Clinton Gormley <cl...@traveljury.com<javascript:>
wrote:
Hiya
Hello.
I had the OOM problem and resolved by setting option
'index.cache.field.type: soft'.
At now, my query and facet works file.
But I have faced new problem, pool performance.
That's what soft gives you By using soft references, you haven't
solved the OOM problem, you've just forced ES to reload field data all the
time (which is very heavy).
You can set the indices.fielddata.cache.size size to avoid OOMs, but it's
a safety mechanism, not a solution. If you are running out of memory it'll
evict field data, which will affect performance. See Elasticsearch Platform — Find real-time answers at scale | Elastic
You need more memory, or more nodes, or fewer facets. If you're faceting
on high cardinality string fields, that's going to use a lot of memory.
clint
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.