<?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 Splunk's bin/.cache is growing out of proportions. Is there a configuration setting to limit the size? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255049#M3167</link>
    <description>&lt;P&gt;I have a python script which returns all kinds of images via REST interface by going for some external sites to fetch them first. Apparently, the results of all such requests to the external sites are cached in &lt;CODE&gt;$SPLUNK_HOME/bin/.cache/&lt;/CODE&gt;. Unfortunately, our requests are constantly changing, so, on one hand, we don't really need that cache much, and, on the other hand, that folder is growing because each request is a new one.&lt;/P&gt;

&lt;P&gt;At some point, Splunk stops all searches because the root partition has less than 5G free space. That's how we discovered bin/cache - by running around the whole system with &lt;CODE&gt;du&lt;/CODE&gt; and looking for the offending folder.&lt;/P&gt;

&lt;P&gt;Are there any configuration settings allowing us to cap the size of bin/.cache somehow? I couldn't find anything in Splunk Admin manual.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 18:06:13 GMT</pubDate>
    <dc:creator>arkadyz1</dc:creator>
    <dc:date>2016-10-14T18:06:13Z</dc:date>
    <item>
      <title>Splunk's bin/.cache is growing out of proportions. Is there a configuration setting to limit the size?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255049#M3167</link>
      <description>&lt;P&gt;I have a python script which returns all kinds of images via REST interface by going for some external sites to fetch them first. Apparently, the results of all such requests to the external sites are cached in &lt;CODE&gt;$SPLUNK_HOME/bin/.cache/&lt;/CODE&gt;. Unfortunately, our requests are constantly changing, so, on one hand, we don't really need that cache much, and, on the other hand, that folder is growing because each request is a new one.&lt;/P&gt;

&lt;P&gt;At some point, Splunk stops all searches because the root partition has less than 5G free space. That's how we discovered bin/cache - by running around the whole system with &lt;CODE&gt;du&lt;/CODE&gt; and looking for the offending folder.&lt;/P&gt;

&lt;P&gt;Are there any configuration settings allowing us to cap the size of bin/.cache somehow? I couldn't find anything in Splunk Admin manual.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255049#M3167</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-10-14T18:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk's bin/.cache is growing out of proportions. Is there a configuration setting to limit the size?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255050#M3168</link>
      <description>&lt;P&gt;I realized that we are using httplib2 and are creating the connection with '.cache' parameter. I'm not completely sure it's the reason, though it may well be...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 19:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255050#M3168</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-10-17T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk's bin/.cache is growing out of proportions. Is there a configuration setting to limit the size?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255051#M3169</link>
      <description>&lt;P&gt;OK, it's confirmed: I copy pasted some code from the Internet, getting an http connection like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;h = httplib2.Http(".cache", timeout = 10)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(timeout was my addition). Once I removed that ".cache" from the parameters, the files stopped appearing there. A strange thing is: the cache was still populating even for requests with 'cache-control' header set to 'no-cache' (a bug in httplib2?)&lt;/P&gt;

&lt;P&gt;Consider this more of a "raising the awareness" post.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 21:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-s-bin-cache-is-growing-out-of-proportions-Is-there-a/m-p/255051#M3169</guid>
      <dc:creator>arkadyz1</dc:creator>
      <dc:date>2016-10-17T21:10:24Z</dc:date>
    </item>
  </channel>
</rss>

