Deployment Architecture

Is the restartSplunkd parameter honored when using Deployment Server and Search Head Pooling?

hulahoop
Splunk Employee
Splunk Employee

I understand it is possible to use Deployment Server to propagate config changes to a Search Head Pool as documented here:

http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Configuresearchheadpooling#Deployment_serv...

It is clear that a single search head can be designated as the deployment client. It will then sync config to the pool target repository and restart itself. What is not clear is how the other search heads in the pool detect the change then restart. When specifying the restartSplunkd parameter in serverclass.conf it does not appear to be honored by search heads which are not designated as deployment clients, but are part of the pool.

Is this the expected behavior? It makes sense that it is the expected behavior since the other search heads are not managed by DS. If this is the case, then what is the recommended way to automate a restart for members of the pool which are not deployment clients?

hulahoop
Splunk Employee
Splunk Employee

When configuring a deployment client from the CLI, the config (including targetURI) is written to etc/system/local/deploymentclient.conf. We are trying a solution whereby we delete deploymentclient.conf from etc/system/local and package it as part of a deployment server app. This app is then synced to the SHP target repository by the search head designated as the deployment client. The effect should be the other search heads in the pool now become implicit deployment clients. Will report back on whether this worked or not, and if there are any unintended problems.

0 Karma

ewoo
Splunk Employee
Splunk Employee

What is not clear is how the other
search heads in the pool detect the
change then restart.

Your suspicion is correct -- the other search heads in the pool do not restart, though they do detect updates to the confs.

Is this the expected behavior?

Yes, this is expected behavior.

If this is the case, then what is the
recommended way to automate a restart
for members of the pool which are not
deployment clients?

Creating a search head pool where one search head acts as a deployment client only really makes sense when pushing apps that do not require restarts.

If you're using deployment server to push apps that do require restarts, I'd recommend foregoing search head pooling entirely; just make each search head a standalone deployment client.

0 Karma

hulahoop
Splunk Employee
Splunk Employee

Thank you, ewoo! We are trying something out which might work, description is posted as an answer.

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...