Getting Data In

Does dbinspect output include cluster replication (RF) configuration?

Beaker77
Explorer

Oh Hai Splunkers!

I've been trying to find out how much disk is being used and the associated compression ratio for a specific index. There's been some great examples using dbinspect like the following:

| dbinspect index=myIndexName
| fields state,id,rawSize,sizeOnDiskMB 
| stats sum(rawSize) AS rawTotal, sum(sizeOnDiskMB) AS diskTotalinMB
| eval rawTotalinMB=(rawTotal / 1024 / 1024) | fields - rawTotal
| eval compression=tostring(round(diskTotalinMB / rawTotalinMB * 100, 2)) + "%"
| table rawTotalinMB, diskTotalinMB, compression

The output of this is what I'm after but I'm using a clustered environment, and am wondering if the sizeOnDiskMB value includes the replication factor or not?

For example, if I have an effective RF of 2, would I have to device the results of the above search by two to get the true size value of a single copy of the data?

Thanks in advance!

0 Karma
1 Solution

amitm05
Builder

@Beaker77

Yes, sizeOnDiskMB will include the replication factor here. We should understand that RF means No. of copies of buckets that we have on the disk. Though these are not searchable copies and so might consume a little less space than searchable copies (which also includes tsidx files). But I guess the question is not ablout less or more space here.
So the answer is yes, "sizeOnDiskMB" will include the replicated copies of data as well.

Let me know if this answers you by marking this as answer and upvoting.
Thanks

View solution in original post

harsmarvania57
SplunkTrust
SplunkTrust

Hi,

Yes dbinspect includes replication bucket as well. If you run below query and sort by id , you will able to see same bucket id twice (if you have RF=2)

| dbinspect index=qualys
| fields state,id,rawSize,sizeOnDiskMB,guId,bucketId,path

amitm05
Builder

@Beaker77

Yes, sizeOnDiskMB will include the replication factor here. We should understand that RF means No. of copies of buckets that we have on the disk. Though these are not searchable copies and so might consume a little less space than searchable copies (which also includes tsidx files). But I guess the question is not ablout less or more space here.
So the answer is yes, "sizeOnDiskMB" will include the replicated copies of data as well.

Let me know if this answers you by marking this as answer and upvoting.
Thanks

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...