All Apps and Add-ons

Splunk App for NetApp Data ONTAP: Why am I seeing high splunkd memory usage on data model acceleration?

pasito
Explorer

I currently have the following setup.

3 x search heads ( 8 cpu, 16gb memory)
2 x indexer ( 8 cpu, 16gb)

Currently I'm only indexing around 10GB per day worth of data, 80% is from the NetApp application "Splunk App for NetApp Data ONTAP". I have datamodel acceleration enabled with a summary of 1 month history on a cron of every 5 minutes.

Now currently the datamodel acceleration runs for about 2-3 minutes and during that time, the memory usage of the splunkd process reaches 16gb and causing OOM kernel errors that kills the process. This causes splunk to crash on the indexer. I've tried the suggestion if implementing cgconfig rules that limits the splunk user to 12gb maximum memory usage but I find this to be a workaround at best that killing splunk child processes shouldn't be needed.

To see how much memory it could use, I created a 3rd indexer with double the resources of the original 2 (so 16 cpu and 32gb memory). In this case, when the datamodel acceleration job was running it was using 32GB and causing OOM errors to appear in /var/log/messages.

My questions:

  1. Has anyone else seen such high memory usage on indexes when datamodel acceleration runs?
  2. The splunk app for netapp datamodel is quite large which hundreds of fields. Does the amount of fields in the datamodel equate to higher memory usage during datamodel updates?
  3. Does reducing the datamodel span (from 1 month to say 7 days) have an impact on memory usage during datamodel updates?

The only thing I can think of right now is creating a custom datamodel with the fields that I need. If anyone has any solutions to try other than a new datamodel, I'm all ears.

0 Karma
1 Solution

pasito
Explorer

To answer your questions. I'm running v.6.3.2 on Amazon linux instances. I had already prefixed the datamodel searches with index=ontap.

I believe I found the issue however (my own fault).

I'm using ansible to push out the apps to the SHC and master-apps folders. Due to a mistake in the ansible deployment, I pushed out the same splunk_app_netapp app to both the SHC and indexing cluster. This meant that the datamodel.conf files were also being executed on both indexes and the SHC resulting in duplicate calls. Removing this app from the indexing cluster machines solved the issue.

The first time the datamodel was built, the memory size did hit 20GB but now its quiet small and manageable.

View solution in original post

pasito
Explorer

To answer your questions. I'm running v.6.3.2 on Amazon linux instances. I had already prefixed the datamodel searches with index=ontap.

I believe I found the issue however (my own fault).

I'm using ansible to push out the apps to the SHC and master-apps folders. Due to a mistake in the ansible deployment, I pushed out the same splunk_app_netapp app to both the SHC and indexing cluster. This meant that the datamodel.conf files were also being executed on both indexes and the SHC resulting in duplicate calls. Removing this app from the indexing cluster machines solved the issue.

The first time the datamodel was built, the memory size did hit 20GB but now its quiet small and manageable.

Masa
Splunk Employee
Splunk Employee

We've seen memory issue on Windows platform. But, the app is not supporting on Windows. So, we haven't investigated cause of the issue so far.

Here is my brain storming 🙂
Assuming the system is not Windows, reducing size of each buckets might help. But, that won't fix already indexed data. If sub-search is using up memory and main-splunkd is running the search, upgrading to v6.3.2 might help resolving the issue. If the cause of the issue is not ontap bucket, specifying the search only to index=ontap may help.

Can you please file a Support case for further troubleshooting?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...