<?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 How to avoid overloading queues when using XML streaming? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233935#M45572</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I was wondering if there was a recommended way to ensure that an app doesn't stream too high a volume of data to avoid flooding the import queue.&lt;/P&gt;

&lt;P&gt;For example, when running my app, I may receive messages such as the following in metrics.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-10-2017 03:17:01.059 -0800 INFO  Metrics - group=queue, name=indexqueue, blocked=true, max_size_kb=500, current_size_kb=499, current_size=803, largest_size=831, smallest_size=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm aware that I can increase the limits within server.conf, but I'd prefer to throttle the app in case it's moved onto another instance.&lt;/P&gt;

&lt;P&gt;Also, when a queue is blocked or the system is otherwise flooded with events, are they always cached until the queue is free or else are they lost each time?&lt;/P&gt;

&lt;P&gt;Thanks for input on either of these.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 11:30:53 GMT</pubDate>
    <dc:creator>Vidd</dc:creator>
    <dc:date>2017-01-10T11:30:53Z</dc:date>
    <item>
      <title>How to avoid overloading queues when using XML streaming?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233935#M45572</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I was wondering if there was a recommended way to ensure that an app doesn't stream too high a volume of data to avoid flooding the import queue.&lt;/P&gt;

&lt;P&gt;For example, when running my app, I may receive messages such as the following in metrics.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-10-2017 03:17:01.059 -0800 INFO  Metrics - group=queue, name=indexqueue, blocked=true, max_size_kb=500, current_size_kb=499, current_size=803, largest_size=831, smallest_size=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm aware that I can increase the limits within server.conf, but I'd prefer to throttle the app in case it's moved onto another instance.&lt;/P&gt;

&lt;P&gt;Also, when a queue is blocked or the system is otherwise flooded with events, are they always cached until the queue is free or else are they lost each time?&lt;/P&gt;

&lt;P&gt;Thanks for input on either of these.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233935#M45572</guid>
      <dc:creator>Vidd</dc:creator>
      <dc:date>2017-01-10T11:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid overloading queues when using XML streaming?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233936#M45573</link>
      <description>&lt;P&gt;Hi Vidd, &lt;/P&gt;

&lt;P&gt;In answer to your first question, I don't think you can adjust the queue size for just one app - server.conf settings are global system settings. &lt;/P&gt;

&lt;P&gt;As to your second question: &lt;BR /&gt;
Queue is bounded by memory and gets blocked if it is full. Persistent Queue does not get blocked because it uses the file system&lt;BR /&gt;
(like a virtual memory). Therefore, you can use persistent queues to help prevent data loss. &lt;BR /&gt;
To create the persistent queue, specify these two attributes within the particular input's stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;persistentQueueSize = &amp;lt;integer&amp;gt;(KB|MB|GB|TB)
* Max size of the persistent queue file on disk.
* Defaults to 0 (no persistent queue).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For example: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://9994]
persistentQueueSize=100MB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For details, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Usepersistentqueues"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Usepersistentqueues&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Hope this helps. Thanks! &lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 23:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233936#M45573</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2017-01-10T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid overloading queues when using XML streaming?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233937#M45574</link>
      <description>&lt;P&gt;Hello, hunters.&lt;/P&gt;

&lt;P&gt;I'm aware that servers.conf is global but thank you nonetheless for clarifying that.&lt;/P&gt;

&lt;P&gt;I believe persistent queues are exactly what I'm looking for. Thank you very much for this information.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 12:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-avoid-overloading-queues-when-using-XML-streaming/m-p/233937#M45574</guid>
      <dc:creator>Vidd</dc:creator>
      <dc:date>2017-01-11T12:38:18Z</dc:date>
    </item>
  </channel>
</rss>

