Refine your search:

Sometimes I see this message in Splunk Web:

You are approaching the maximum number of searches that can be run concurrently. current=15, maximum=18

What should I do about it?

asked 04 Feb '10, 20:12

hulahoop's gravatar image

hulahoop ♦
2.5k3240
accept rate: 40%

How do I hide this popup? It's freaking out our users.

(13 Feb, 12:47) kotique

2 Answers:

If you have hardware to support allocation of more CPU resources to search execution, then it is possible to increase the max number of concurrent searches.

The number of concurrent searches is based on CPU and affected by 2 settings in limits.conf. From limits.conf.spec:

> [search]
> max_searches_per_cpu = <int>
> * the maximum number of concurrent searches per CPU. The system-wide number of searches
> * is computed as max_searches_per_cpu x number_of_cpus + 2
> * Defaults to 2

> [scheduler]
> max_searches_perc = <integer>
> * the maximum number of searches the scheduler can run, as a percentage
> * of the maximum number of concurrent searches, see [search] max_searches_per_cpu
> * for how to set the system wide maximum number of searches
> * Defaults to 25

For an 8 CPU box, the default number of max_searches_per_cpu is 18 (4x4cpu+2). It is likely, however, that such a server is capable of supporting more searches per CPU so it is safe to increment to max_searches_per_cpu=4.

Additionally, if you are running many scheduled searches for alerts or dashboards, you can find a more equitable division with max_searches_perc than the default 25%.

These settings will allow you to maximize your hardware. If you find this is not adequate, consider adding a server. In general, the recommended approach to scaling is to add more CPUs via additional Splunk servers so the workload of search execution can be shared.

link

answered 04 Feb '10, 21:12

hulahoop's gravatar image

hulahoop ♦
2.5k3240
accept rate: 40%

edited 16 Mar '10, 22:12

2

Note that the default was bumped to max_searches_per_cpu=4 in 4.1 (or possibly earlier). So the "Defaults to 2" is no longer accurate. I had bumped this to "3" years ago in my local/limits.conf, so after and upgrade I end up with a lower value than the default. Just a heads up!

(06 Oct '11, 12:00) Lowell ♦

You shouldn't need to do anything. If you do hit the max concurrent search limit, once a search completes, it frees up a spot for the next search in line. Eventually all searches will complete.

It is not necessarily bad if you keep encountering this error so long a the max concurrent searches is not reached. If you consistently reach max concurrent searches you may want to look into staggering your searches.

link

answered 04 Feb '10, 20:44

the_wolverine's gravatar image

the_wolverine ♦
4.3k5843
accept rate: 50%

edited 04 Feb '10, 21:05

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,089
×71

Asked: 04 Feb '10, 20:12

Seen: 1,457 times

Last updated: 18 Apr, 13:46

Copyright © 2005-2012 Splunk, Inc. All rights reserved.