All Apps and Add-ons

Why DB Connect duplicates events on indexer cluster rolling restart?

joshiro
Communicator

Splunk Enterprise 9.0.1 on premise, clustered search heads and indexers.
DB Connect 3.7.0.

We found out that every time the indexer cluster is restarted, some events are being duplicated in the indexes around the time of the restart.
There are some older threads discussing similar issues but they are using much older versions of the software.

Any ideas on how to troubleshoot/debug/workaround this issue?

Labels (2)
0 Karma
1 Solution

joshiro
Communicator

It turns out that the useACK option in outputs.conf was the source of the problem.
The rolling restart of the indexers doesnt wait for the ACK to be returned to the HF. So the HF will send again the data creating duplicates.

If we were to keep using the ACK then we must stop the HF manually before the rolling restart and start if after it is done.

View solution in original post

0 Karma

joshiro
Communicator

It turns out that the useACK option in outputs.conf was the source of the problem.
The rolling restart of the indexers doesnt wait for the ACK to be returned to the HF. So the HF will send again the data creating duplicates.

If we were to keep using the ACK then we must stop the HF manually before the rolling restart and start if after it is done.

0 Karma

wmazur-splunk
Splunk Employee
Splunk Employee

Db Connect is using KV Store to remember id/timestamp of the latest processed row (whatever was used).

Getting the data from DB, storing it in Splunk and saving the timestamp - it is not an atomic operation so it is possible that KV Store is unavailable when it's needed. 

I would suggest to disable scheduled job via script, do restart, enable job - it will start from the latest processed row (if it's still in the database)

joshiro
Communicator

Thanks for the reply.

The thing is that the HeavyForwarder that contains DB Connect is always online during the rolling restart of the indexers, so unless its using the KV Store of the indexers it shouldnt be unavailable. It might use the KV Store of the indexers for something else but we dont know.

We are going to try to stop the HF before the rolling restart of the indexer and then start it after it finishes.

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!

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 ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...