Getting Data In

do you need to restart splunkd if I modify the add/remove peer node from a search cluster or indexer cluster?

danielwan
Explorer

If I add or remove a peer node into/from a existing search head cluster or indexer cluster, do I need to restart splunkd? If I do it via CLI, is it required to restart splunkd? how about doing it via editing configuration file?

I went through http://docs.splunk.com/Documentation/Splunk/7.0.0/Indexer/Restartthecluster but it seems to be vague.

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

Indexing and Search Head Cluster peer removal process is different... Both of them, the options from the GUI are limited..

For removing a peer from a Indexing Cluster, you need to run a splunk offline from the peer you want to remove. Once you do that and the peer gracefully removes itself from the Cluster, you can either restart the CM for it to disappear (not recommended) or follow the process listed below..

See the following Documentation :
https://docs.splunk.com/Documentation/Splunk/7.0.0/Indexer/Takeapeeroffline
https://docs.splunk.com/Documentation/Splunk/7.0.0/Indexer/Removepeerfrommasterlist

For a SHC, peer removal is a bit less convoluted.. essentially from the peer you want to remove, you need to run the splunk remove shcluster-member, or from another peer you can run the following : splunk remove shcluster-member -mgmt_uri https://hostnameofpeertoremove:8089

See docs :

https://docs.splunk.com/Documentation/Splunk/7.0.0/DistSearch/Removeaclustermember

Note that this can have adverse effects on your SHC, especially when you dont have enough peers remaining to elect the new captain.

If you follow the above processes, which are the recommended methods of doing this, you do not need to restart Splunk. You could edit the configuration files, but doing so would require a restart of Splunk.

0 Karma

hardikJsheth
Motivator

If you do it via CLI , you don't need to restart Splunkd. However, if you do it via updating configuration files, you need to restart the Splunkd services.

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