Deployment Architecture

How does one find if a multisite data bucket is primary and its site id?

tianchen
Explorer

Hi,

Is there a way to verify what the primality status (whether the bucket is primary) and the site affinity of a multisite bucket?

Where are those values stored relative to the bucket?

1 Solution

dxu_splunk
Splunk Employee
Splunk Employee

check out

https://master_uri:mgmt_port/services/cluster/master/buckets/BUCKET_ID

there should be a primary_by_site listing, stating which peer (by GUID) is returning results for each site. site affinity should guarantee that a site1 peer is primary_by_site for site1, site2 peer is primary for site2, etc... (assuming theres a bucket present on the site of course)

View solution in original post

dxu_splunk
Splunk Employee
Splunk Employee

check out

https://master_uri:mgmt_port/services/cluster/master/buckets/BUCKET_ID

there should be a primary_by_site listing, stating which peer (by GUID) is returning results for each site. site affinity should guarantee that a site1 peer is primary_by_site for site1, site2 peer is primary for site2, etc... (assuming theres a bucket present on the site of course)

tianchen
Explorer

Thanks dxu. That's good to know.

What if one has this use case to change the siteid for a bunch of buckets to migrate it to another site?
Is that possible to do?

Is there a way to find that information physically on the file system?

I was curious as to where rebuild-bucket-manifest gets all that information to regenerate the manifests.

The same with the primality mask. Wonder if that's also stored somewhere just in case one would like to dive deeper in troubleshooting..

Thanks again.

0 Karma

dxu_splunk
Splunk Employee
Splunk Employee

The primaries (primality-mask) are maintained on the Cluster Master, and they can change (for a particular bucket) from time to time (sometimes we'll rebalance the primaries so that each indexer has a similar # of primary buckets). Theres currently no command to force the master to make specific changes of it.

We also can't change where the bucket originated from (origin-site), since its embedded in the rawdata file of a bucket.

tianchen
Explorer

Ok I see what you mean now. Thanks for the enlightening insight Da Xu.

Looks like best way to move it is to delete the peer and stand it up under the new site.
http://docs.splunk.com/Documentation/Splunk/6.2.2/Indexer/Moveapeertoanewsite

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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...