<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What if smartstore max_cache_size exceed? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536300#M4720</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;While testing&amp;nbsp;smart store, I have a couple of questions.&lt;/P&gt;&lt;P&gt;1. What does cache size mean? As I understand, it is the storage size that hot buckets and warm buckets can take. Is it correct?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Let's say I set&amp;nbsp;max_cache_size=1TB and there is only one index. When will warm bucket be evicted? Is it evicted at the time when max_cache_size is exceed? &amp;nbsp;otherwise, when buckets get older than hotlist_recency_secs? or both?&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. In case&amp;nbsp;max_cache_size=1TB, Iet's say I do "All time" search, which leads to fetching warm buckets from remote storage. Due to the fetched buckets, max_cache_size will exceed. What happened when the search finish? Is all warm bucket going to be evicted?&lt;/P&gt;&lt;P&gt;I read docs many times and tested by myself, but the bucket behavior is not clear. Would be appreciate if anybody answer for the questions above. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 09:12:15 GMT</pubDate>
    <dc:creator>brandy81</dc:creator>
    <dc:date>2021-01-19T09:12:15Z</dc:date>
    <item>
      <title>What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536300#M4720</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;While testing&amp;nbsp;smart store, I have a couple of questions.&lt;/P&gt;&lt;P&gt;1. What does cache size mean? As I understand, it is the storage size that hot buckets and warm buckets can take. Is it correct?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Let's say I set&amp;nbsp;max_cache_size=1TB and there is only one index. When will warm bucket be evicted? Is it evicted at the time when max_cache_size is exceed? &amp;nbsp;otherwise, when buckets get older than hotlist_recency_secs? or both?&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. In case&amp;nbsp;max_cache_size=1TB, Iet's say I do "All time" search, which leads to fetching warm buckets from remote storage. Due to the fetched buckets, max_cache_size will exceed. What happened when the search finish? Is all warm bucket going to be evicted?&lt;/P&gt;&lt;P&gt;I read docs many times and tested by myself, but the bucket behavior is not clear. Would be appreciate if anybody answer for the questions above. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 09:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536300#M4720</guid>
      <dc:creator>brandy81</dc:creator>
      <dc:date>2021-01-19T09:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536331#M4722</link>
      <description>&lt;P&gt;Cache size is the amount of local (on the indexer) storage used for warm buckets.&amp;nbsp; Hot buckets are not in the cache.&lt;/P&gt;&lt;P&gt;A bucket will be evicted from the cache when storage is needed to download a different bucket from S2.&lt;/P&gt;&lt;P&gt;The max_cache_size will not be exceeded.&amp;nbsp; An "All Time" search will cause many buckets to be evicted from the cache so other buckets can be transferred from SmartStore.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 13:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536331#M4722</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-19T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536415#M4727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Thank you for your answer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. Could you please give me any reference docs about your answers for question #1? As I tested, It seems that the cache size is the amount of local storage for warms and hots buckets. Because I set &lt;SPAN&gt;max_cache_size=5G, then exactly when the summation for warms bucket size and hots bucket size is exceeded 5G, &amp;nbsp;the warm bucket is evicted.&lt;BR /&gt;&lt;BR /&gt;3. I meant the the situation where I set max_cache_size=1TB and there are 1TB data on cache and &amp;nbsp;2TB data on remote storage. The "all time" search need all data on cache and remote storage as well. In this situation, how does the search&amp;nbsp;execute?&amp;nbsp;Does the search&amp;nbsp;execute&amp;nbsp;on local data, then evict, and fetch from S2?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help me understand the behavior of S2. Thanks!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536415#M4727</guid>
      <dc:creator>brandy81</dc:creator>
      <dc:date>2021-01-20T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536496#M4730</link>
      <description>&lt;P&gt;1.&amp;nbsp; Thanks for asking about that as it forced me to research it and realize I was incorrect.&amp;nbsp; Hot buckets *are* included in the S2 cache.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Indexer/SmartStorearchitecture#Buckets_and_SmartStore" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Indexer/SmartStorearchitecture#Buckets_and_SmartStore&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; It is expect that the S2 remote store will be far larger than the local cache.&amp;nbsp; When satisfying a search, buckets will be evicted from the cache as often as necessary to make room for more buckets to be downloaded from the remote store.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536496#M4730</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-20T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536642#M4731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much! May I ask one more questions? Is it true that the cache manager evicts warm data only when the cache storage is full?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that's true, it means that the cache has been full since a certain point in time. Then, when a search executes, the cache will continuously evict data from the local storage and fetch warm data from S2. Is my understanding correct? It sounds inefficient..&lt;/P&gt;&lt;P&gt;I'd appreciate if you help me out to understand... Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 09:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536642#M4731</guid>
      <dc:creator>brandy81</dc:creator>
      <dc:date>2021-01-21T09:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: What if smartstore max_cache_size exceed?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536680#M4734</link>
      <description>&lt;P&gt;Buckets are evicted when room is needed for a bucket to be copied from S2.&amp;nbsp; The cache does not need to be totally full for evictions to happen.&lt;/P&gt;&lt;P&gt;Keep in mind that the cache is designed to hold the most-recently searched data under the premise that the same data will be searched again soon.&amp;nbsp; Ideally, the cache should be sized to hold enough data to satisfy your most common searches so that cache misses don't happen often.&lt;/P&gt;&lt;P&gt;If you have indexes that regularly are searched over long time periods then those indexes may not be good candidates for SmartStore.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 13:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-if-smartstore-max-cache-size-exceed/m-p/536680#M4734</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-21T13:34:26Z</dc:date>
    </item>
  </channel>
</rss>

