<?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 Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209467#M61237</link>
    <description>&lt;P&gt;in my scheduler.log I get:&lt;BR /&gt;
The maximum number of concurrent scheduled searches has been reached (limits: historical=11, realtime=11). historical=0, realtime=12 ready-to-run scheduled searches are pending.&lt;/P&gt;

&lt;P&gt;i think, the &lt;CODE&gt;(limits: historical=11, realtime=11)&lt;/CODE&gt; was misleading. &lt;BR /&gt;
it should have said - (limits: historical=11 OR realtime=11). we should not add 11+11=22. its either 11 historical or 11 real time searches.&lt;/P&gt;

&lt;P&gt;update -&lt;BR /&gt;&lt;BR /&gt;
can you run this for last 24hrs or last 7 days and update us few results...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd source=*metrics.log group=search_concurrency "system total" | table active_hist_searches active_realtime_searches
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Sep 2016 03:30:31 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2016-09-22T03:30:31Z</dc:date>
    <item>
      <title>Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209466#M61236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a single-server instance of Splunk with 16 cores. According to my research the maximum number of realtime searches should be:&lt;BR /&gt;
max real-time searches = max_rt_search_multiplier x max historical searches&lt;BR /&gt;
and&lt;BR /&gt;
max_hist_searches =  max_searches_per_cpu x number_of_cpus + base_max_searches&lt;/P&gt;

&lt;P&gt;So substituting in values from limits.conf I see:&lt;BR /&gt;
max real-time searches = 1 x (1 x 16 + 6) = 22&lt;/P&gt;

&lt;P&gt;But in my scheduler.log I get:&lt;BR /&gt;
The maximum number of concurrent scheduled searches has been reached (limits: historical=11, realtime=11).  historical=0, realtime=12 ready-to-run scheduled searches are pending.&lt;/P&gt;

&lt;P&gt;Suspiciously these two numbers add up to 22. What am I missing here? I thought realtime should be 22.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209466#M61236</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2020-09-29T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209467#M61237</link>
      <description>&lt;P&gt;in my scheduler.log I get:&lt;BR /&gt;
The maximum number of concurrent scheduled searches has been reached (limits: historical=11, realtime=11). historical=0, realtime=12 ready-to-run scheduled searches are pending.&lt;/P&gt;

&lt;P&gt;i think, the &lt;CODE&gt;(limits: historical=11, realtime=11)&lt;/CODE&gt; was misleading. &lt;BR /&gt;
it should have said - (limits: historical=11 OR realtime=11). we should not add 11+11=22. its either 11 historical or 11 real time searches.&lt;/P&gt;

&lt;P&gt;update -&lt;BR /&gt;&lt;BR /&gt;
can you run this for last 24hrs or last 7 days and update us few results...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd source=*metrics.log group=search_concurrency "system total" | table active_hist_searches active_realtime_searches
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2016 03:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209467#M61237</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T03:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209468#M61238</link>
      <description>&lt;P&gt;But why is it 11? According to the doco it should be 22.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 03:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209468#M61238</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-09-22T03:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209469#M61239</link>
      <description>&lt;P&gt;may we know your limits.conf [search] configuration please. &lt;BR /&gt;
also is this on search head cluster? ur splunk version also, please&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 03:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209469#M61239</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T03:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209470#M61240</link>
      <description>&lt;P&gt;From running splunk.exe show config limits I get the following for the [search] stanza. To my knowledge these are all defaults:&lt;BR /&gt;
    [search]&lt;BR /&gt;
    allow_batch_mode=true&lt;BR /&gt;
    allow_inexact_metasearch=false&lt;BR /&gt;
    base_max_searches=6&lt;BR /&gt;
    batch_retry_max_interval=300&lt;BR /&gt;
    batch_retry_min_interval=5&lt;BR /&gt;
    batch_retry_scaling=1.5&lt;BR /&gt;
    batch_search_max_index_values=10000000&lt;BR /&gt;
    batch_wait_after_end=900&lt;BR /&gt;
    cache_ttl=300&lt;BR /&gt;
    chunk_multiplier=5&lt;BR /&gt;
    default_allow_queue=true&lt;BR /&gt;
    default_save_ttl=604800&lt;BR /&gt;
    dispatch_dir_warning_size=2000&lt;BR /&gt;
    dispatch_quota_retry=4&lt;BR /&gt;
    dispatch_quota_sleep_ms=100&lt;BR /&gt;
    enable_history=true&lt;BR /&gt;
    failed_job_ttl=86400&lt;BR /&gt;
    fetch_remote_search_log=disabledSavedSearches&lt;BR /&gt;
    fieldstats_update_freq=0&lt;BR /&gt;
    fieldstats_update_maxperiod=60&lt;BR /&gt;
    load_remote_bundles=false&lt;BR /&gt;
    long_search_threshold=2&lt;BR /&gt;
    max_chunk_queue_size=1000000&lt;BR /&gt;
    max_combiner_memevents=50000&lt;BR /&gt;
    max_count=500000&lt;BR /&gt;
    max_history_length=1000&lt;BR /&gt;
    max_id_length=150&lt;BR /&gt;
    max_macro_depth=100&lt;BR /&gt;
    max_rawsize_perchunk=100000000&lt;BR /&gt;
    max_results_perchunk=2500&lt;BR /&gt;
    max_rt_search_multiplier=1&lt;BR /&gt;
    max_searches_per_cpu=1&lt;BR /&gt;
    max_tolerable_skew=60&lt;BR /&gt;
    max_workers_searchparser=5&lt;BR /&gt;
    min_freq=0.01&lt;BR /&gt;
    min_prefix_len=1&lt;BR /&gt;
    min_results_perchunk=100&lt;BR /&gt;
    multi_threaded_setup=0&lt;BR /&gt;
    preview_duty_cycle=0.25&lt;BR /&gt;
    queued_job_check_freq=1&lt;BR /&gt;
    realtime_buffer=10000&lt;BR /&gt;
    reduce_duty_cycle=0.25&lt;BR /&gt;
    reduce_freq=10&lt;BR /&gt;
    remote_timeline=true&lt;BR /&gt;
    remote_timeline_connection_timeout=5&lt;BR /&gt;
    remote_timeline_fetchall=1&lt;BR /&gt;
    remote_timeline_min_peers=1&lt;BR /&gt;
    remote_timeline_receive_timeout=10&lt;BR /&gt;
    remote_timeline_send_timeout=10&lt;BR /&gt;
    remote_timeline_touchperiod=300&lt;BR /&gt;
    remote_ttl=600&lt;BR /&gt;
    replication_file_ttl=600&lt;BR /&gt;
    replication_period_sec=60&lt;BR /&gt;
    result_queue_max_size=100000000&lt;BR /&gt;
    results_queue_min_size=10&lt;BR /&gt;
    rr_max_sleep_ms=1000&lt;BR /&gt;
    rr_min_sleep_ms=10&lt;BR /&gt;
    rr_sleep_factor=2&lt;BR /&gt;
    search_process_mode=auto&lt;BR /&gt;
    stack_size=4194304&lt;BR /&gt;
    status_buckets=0&lt;BR /&gt;
    status_cache_size=10000&lt;BR /&gt;
    summary_mode=all&lt;BR /&gt;
    sync_bundle_replication=auto&lt;BR /&gt;
    target_time_perchunk=2000&lt;BR /&gt;
    track_indextime_range=true&lt;BR /&gt;
    truncate_report=false&lt;BR /&gt;
    ttl=600&lt;BR /&gt;
    write_multifile_results_out=true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209470#M61240</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2020-09-29T11:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209471#M61241</link>
      <description>&lt;P&gt;And it is a single-server instance, so indexer and search head all on one server. Running Splunk 6.2.6&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 04:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209471#M61241</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-09-22T04:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209472#M61242</link>
      <description>&lt;P&gt;can you run this for last 24hrs or last 7 days and update us few results...&lt;BR /&gt;
index=_internal sourcetype=splunkd source=*metrics.log group=search_concurrency "system total" | table active_hist_searches active_realtime_searches&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209472#M61242</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T11:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209473#M61243</link>
      <description>&lt;P&gt;Even for the last 4 hours that returns 240,000+ results and they seem to read 0,0. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 04:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209473#M61243</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-09-22T04:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209474#M61244</link>
      <description>&lt;P&gt;If I sort by -active_realtime_searches then I get 13 as the max number of realtime searches in the last 24 hour period and 15 for historical. &lt;/P&gt;

&lt;P&gt;I do get a row of 15 historical and 11 reatime&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209474#M61244</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2020-09-29T11:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209475#M61245</link>
      <description>&lt;P&gt;15 and 11 on the same line ah?!? &lt;BR /&gt;
totally 26 searches ah?!? &lt;BR /&gt;
One more question - how you found out the CPU cores please.. are you sure about the number of CPU cores on this system?!? &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209475#M61245</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T05:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209476#M61246</link>
      <description>&lt;P&gt;I'm 100% sure about the number of cores. Checked through Task Manager on Windows, plus I administer the VM it is running on and it has 2 x sockets with 8 cores each presented to it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209476#M61246</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-09-22T05:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209477#M61247</link>
      <description>&lt;P&gt;Oh Ok, great..&lt;BR /&gt;
May I know, 15 and 11 on the same line ah?!? &lt;BR /&gt;
totally 26 searches ah?!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209477#M61247</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T05:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209478#M61248</link>
      <description>&lt;P&gt;Correct. On the same line.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209478#M61248</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-09-22T05:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209479#M61249</link>
      <description>&lt;P&gt;But in my scheduler.log I get:&lt;BR /&gt;
The maximum number of concurrent scheduled searches has been reached (limits: historical=11, realtime=11). historical=0, realtime=12 ready-to-run scheduled searches are pending.&lt;/P&gt;

&lt;P&gt;Means, its saying only 11 and 11 searches together.. but, above one says 26 searches?!?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209479#M61249</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209480#M61250</link>
      <description>&lt;P&gt;I believe it is a simple reason.  scheduled searches is 50% of total historical search or realtime search. In your case, hist search max is 22. So, scheduled search is 50% of 22 = 11. Same for real-time search. 11 is max for real-time scheduled searches. It is in limits.conf.spec file. &lt;/P&gt;

&lt;P&gt;Old info in wiki.splunk.com still works in general.&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Community:TroubleshootingSearchQuotas"&gt;http://wiki.splunk.com/Community:TroubleshootingSearchQuotas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209480#M61250</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-09-22T06:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209481#M61251</link>
      <description>&lt;P&gt;Great, though I didn't solve this, I am glad, we troubleshooted this.. maybe, an upvote, to cheer me;) &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209481#M61251</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-22T06:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209482#M61252</link>
      <description>&lt;P&gt;Sound plausible. From the [scheduler] section:&lt;BR /&gt;
max_searches_perc: defaults to 50.&lt;/P&gt;

&lt;P&gt;I ended up changing the rt search multiplier from 1 to 2. I can't find any good data on what value it is safe to set this to. Some people have said 4 and one person set it to 8. Setting it to 2 got me out of trouble in this case.&lt;/P&gt;

&lt;P&gt;I wish the documentation was clearer on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209482#M61252</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2020-09-29T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk maxing out at 11 realtime searches despit having 16 CPUs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209483#M61253</link>
      <description>&lt;P&gt;Once you changed the default value, you are easier to reach high resource usage and performance issue. It all depends on how your searches finishes quickly and avoid long running concurrent searches. I had a user standalone and set to 4 and once enabling Report acceleration (a lot), their end users complained performance issue. They changed to 2. Still not enough to avoid performance issue. They had to disable Report acceleration. Again, basically, changing the default value will push system resource work harder. How much hard they can work without bad user experience? That all depends. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 06:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-maxing-out-at-11-realtime-searches-despit-having-16-CPUs/m-p/209483#M61253</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-09-22T06:28:10Z</dc:date>
    </item>
  </channel>
</rss>

