Deployment Architecture

Index replication disabled...remove replicated buckets?

ckurtz
Path Finder

I had Index Clustering and Replication (Rep Factor 3) enabled on my Splunk 5.0.4 indexer cluster, but had to disable replication because my cold storage (NFS) was too slow -- replication was causing the cluster to panic as the storage became farther and farther behind.

I now have several dozen GBs of replicated buckets (starting with rb) on the NFS storage that the indexers are no longer referencing, since replication is disabled (replication factor = 1).

To be clear, I am still Clustering, just have replication and search factors set to 1.

Can I safely delete the buckets in cold (labeled as rb*) to reclaim space? Or will these buckets age to frozen properly?

I plan on re-enabling Replication once we upgrade to 6 (in several months) and can replicate hot->hot.

1 Solution

sowings
Splunk Employee
Splunk Employee

My interpretation of this is that yes, you can remove the rb* from cold, but that you shouldn't do so with a live index. Thawed is the only bucket lifecycle intended to be tolerant of "new bucket", "delete a bucket" behavior while online, to the best of my knowledge.

So, shut down, remove (or simply relocate the directory) with the rb_ colds, and then bring Splunk back up.

Note that if you set repFactor = 0, the bucket names will no longer have the rb_GUID form.

View solution in original post

ckurtz
Path Finder

Official answer from support is to NOT remove any replicated buckets even with clustering disabled, as they may be marked as the Primary Bucket. It is best to let them age out.

0 Karma

sowings
Splunk Employee
Splunk Employee

Good to know; thanks for following up.

0 Karma

sowings
Splunk Employee
Splunk Employee

My interpretation of this is that yes, you can remove the rb* from cold, but that you shouldn't do so with a live index. Thawed is the only bucket lifecycle intended to be tolerant of "new bucket", "delete a bucket" behavior while online, to the best of my knowledge.

So, shut down, remove (or simply relocate the directory) with the rb_ colds, and then bring Splunk back up.

Note that if you set repFactor = 0, the bucket names will no longer have the rb_GUID form.

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!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Request for Professional Development: Attending .conf26

Winning Over the Boss: Your Pass to .conf26 conf26 is going to be here before you know it. If don't already ...

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...