Filter Cache Expire


(Logan) #1

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache gets
dropped after about 30 minutes or so without seeing any actual evictions.
I'd like to be able to warm up the cache and have that warm data persist
until there is an actual need to evict the LRU data. Is there a way to
control how long my indices.cache.filter is retained? Is it a good idea to
want to do this in the first place?

-Logan-

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Leonardo Menezes) #2

According to the docs, by default the filter cache should not expire:

index.cache.filter.expire: A time based setting that expires filters after
a certain time of inactivity. Defaults to -1. For example, can be set to 5m for
a 5 minute expiry.

Where do you see your cache is being dropped? Using the node stats API?

Could it be that your cache is just being invalidated due to updates?

On Sat, Oct 5, 2013 at 1:47 AM, Logan Hardy loganbhardy@gmail.com wrote:

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache
gets dropped after about 30 minutes or so without seeing any actual
evictions. I'd like to be able to warm up the cache and have that warm data
persist until there is an actual need to evict the LRU data. Is there a way
to control how long my indices.cache.filter is retained? Is it a good idea
to want to do this in the first place?

-Logan-

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Logan) #3

I'm talking about indices.cache.filter not the index.cache.filter.

indices.cache.filter.expire doesn't seem to be documented anywhere that I
can find but I did try setting it to -1 and the node would not start. I was
able to set it to 1m and observed corresponding cache evictions as a
result. The good news is that i've demonstrated that the behavior I was
talking about in my original post is clearly not caused by the expire
setting or else I would be seeing evictions with my filter cache drops.
There is something going on here that I obviously don't understand but it's
probably just a red herring so I won't stress about it further. Thanks a
bunch.

On Friday, October 4, 2013 5:47:45 PM UTC-6, Logan Hardy wrote:

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache
gets dropped after about 30 minutes or so without seeing any actual
evictions. I'd like to be able to warm up the cache and have that warm data
persist until there is an actual need to evict the LRU data. Is there a way
to control how long my indices.cache.filter is retained? Is it a good idea
to want to do this in the first place?

-Logan-

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Ivan Brusic) #4

My filter cache expires for no reason all the time. Been trying to pinpoint
why for a while now.

Cheers,

Ivan

On Tue, Oct 8, 2013 at 2:07 PM, Logan Hardy loganbhardy@gmail.com wrote:

I'm talking about indices.cache.filter not the index.cache.filter.

indices.cache.filter.expire doesn't seem to be documented anywhere that I
can find but I did try setting it to -1 and the node would not start. I was
able to set it to 1m and observed corresponding cache evictions as a
result. The good news is that i've demonstrated that the behavior I was
talking about in my original post is clearly not caused by the expire
setting or else I would be seeing evictions with my filter cache drops.
There is something going on here that I obviously don't understand but it's
probably just a red herring so I won't stress about it further. Thanks a
bunch.

On Friday, October 4, 2013 5:47:45 PM UTC-6, Logan Hardy wrote:

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache
gets dropped after about 30 minutes or so without seeing any actual
evictions. I'd like to be able to warm up the cache and have that warm data
persist until there is an actual need to evict the LRU data. Is there a way
to control how long my indices.cache.filter is retained? Is it a good idea
to want to do this in the first place?

-Logan-

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Logan) #5

From what I've bee able to deduce through experimentation, it looks like
any drop in filter cache that is caused by the LRU eviction or an arbitrary
expiration time will show up as an actual eviction you can see in the
bigdesk plugin graph or the node stats api. Simply closing an index or
reducing the number of replicas can cause it to drop without a
corresponding spike in the eviction graph (makes sense). Once again for me,
I'd say I think I was just chasing a red herring here. If someone has
another explanation I'd like to hear it but this is not a real issue for
me, just more of a curiosity really. :slight_smile:

-Logan-

On Tuesday, October 8, 2013 3:53:25 PM UTC-6, Ivan Brusic wrote:

My filter cache expires for no reason all the time. Been trying to
pinpoint why for a while now.

Cheers,

Ivan

On Tue, Oct 8, 2013 at 2:07 PM, Logan Hardy <logan...@gmail.com<javascript:>

wrote:

I'm talking about indices.cache.filter not the index.cache.filter.

indices.cache.filter.expire doesn't seem to be documented anywhere that I
can find but I did try setting it to -1 and the node would not start. I was
able to set it to 1m and observed corresponding cache evictions as a
result. The good news is that i've demonstrated that the behavior I was
talking about in my original post is clearly not caused by the expire
setting or else I would be seeing evictions with my filter cache drops.
There is something going on here that I obviously don't understand but it's
probably just a red herring so I won't stress about it further. Thanks a
bunch.

On Friday, October 4, 2013 5:47:45 PM UTC-6, Logan Hardy wrote:

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache
gets dropped after about 30 minutes or so without seeing any actual
evictions. I'd like to be able to warm up the cache and have that warm data
persist until there is an actual need to evict the LRU data. Is there a way
to control how long my indices.cache.filter is retained? Is it a good idea
to want to do this in the first place?

-Logan-

--
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.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Logan) #6

BTW Ivan, I was able to make my filter cache expire by adding
"indices.cache.filter.expire: 5m" to my elasticsearch.yml. It looks like
this is not set at all by default but you might want to check to see if
that is set in your config somewhere.

-Logan-

On Tuesday, October 8, 2013 3:53:25 PM UTC-6, Ivan Brusic wrote:

My filter cache expires for no reason all the time. Been trying to
pinpoint why for a while now.

Cheers,

Ivan

On Tue, Oct 8, 2013 at 2:07 PM, Logan Hardy <logan...@gmail.com<javascript:>

wrote:

I'm talking about indices.cache.filter not the index.cache.filter.

indices.cache.filter.expire doesn't seem to be documented anywhere that I
can find but I did try setting it to -1 and the node would not start. I was
able to set it to 1m and observed corresponding cache evictions as a
result. The good news is that i've demonstrated that the behavior I was
talking about in my original post is clearly not caused by the expire
setting or else I would be seeing evictions with my filter cache drops.
There is something going on here that I obviously don't understand but it's
probably just a red herring so I won't stress about it further. Thanks a
bunch.

On Friday, October 4, 2013 5:47:45 PM UTC-6, Logan Hardy wrote:

I'm running Elasticsearch 0.90.3 and I've noticed that my filter cache
gets dropped after about 30 minutes or so without seeing any actual
evictions. I'd like to be able to warm up the cache and have that warm data
persist until there is an actual need to evict the LRU data. Is there a way
to control how long my indices.cache.filter is retained? Is it a good idea
to want to do this in the first place?

-Logan-

--
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.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #7