Getting Data In

Reports taking too much of CPU usage. Any work around recommendations?

pdantuuri0411
Explorer

HI

We have a small Splunk environment with search head and indexer on the same instance and server. Lately, we have been creating more reports and alerts. Usually, we don't have any performance issues but when the reports run, the CPU usage is going to around 90%. They run once every day at midnights. ANy recommendations or workarounds for this issue.

Note - We cannot add CPU cores.

Regards,
Pradeep

0 Karma

bcyates
Communicator

Stagger your reports so they don't all run at midnight. Set them on cron schedules to run 11:50, 11:55, 12:05, etc.

Also, make sure your searches are optimized. (i.e. you are specifiying your index in every search, not search All Time, not searching Real time, etc.)

https://docs.splunk.com/Documentation/Splunk/7.2.4/Search/Quicktipsforoptimization

0 Karma

somesoni2
Revered Legend

Ideal solution would be that you build/upgrade your instance to have sufficient h/w to manage your workload. Only other thing you could do is that you optimize the report search.

0 Karma

nickhills
Ultra Champion

What is the specification of the server - does it match the recommended hardware here: https://docs.splunk.com/Documentation/Splunk/7.2.4/Capacity/Referencehardware

If my comment helps, please give it a thumbs up!
0 Karma

pdantuuri0411
Explorer

I can see a couple of warnings. Does changing these help in the performance improvement

1) One or more Splunk instances are running on a host that has one or more resource limits set below official recommendations.

ulimits.open_files (current / recommended) ulimits.user_processes (current / recommended)
4096 / 8192 1024 / 8192

2) One or more Splunk instances are running on a host that has kernel transparent huge pages enabled. This can significantly reduce performance and is against best practice.

transparent_hugepages.enabled transparent_hugepages.defrag state

always always bad

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...