Hi,
I'm trying to get some aggregated information by Querying Elasticsearch via
my app. What I notice is that after some time I get a CircuitBreaker
exception and my query fails. I can assume that I load too many fielddata
and eventually the CircuitBreaker stops my query. Inside my application I
have a logic where I do the query sequentially by time. For example I split
the query with a range if two hours to every half hour, hence instead of
doing one query for the full two hours period I do 4 queries of half hour
each. And this is something I can configure.
My Question is whether it has a meaning to perform a clearCache request
between my requests (or every 15 minutes for instance) in order to avoid
CircuitBreaker exception. I know I will make it slower but to my mind it is
better to perform a bit poorly rather than stopping the operation. Knowing
that the query remains the same (with different parameters) does this have
a meaning ? or I will end up deleting and creating the same cache again and
again?
client.admin().indices().prepareClearCache(indexName).get();
Other alternatives here to avoid circuitbreaker in the most efficient way?
Of course if I leave it unbounded I eventually get a heap space exception..
Thank you
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d093c6df-b40b-4704-b0dd-c6bc300299c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.