This subject keeps baffling us - Can I configure restartSplunkd to true for all applications?
One thing we saw is that when we bounce the deployment server during the Linux maintenance window, all the apps covered in the serverclasses are being redeployed, I was under the impression that only when we run the following, the hosts associated with this serverclass stanza are being bounced -
splunk reload deploy-server -class <server_class_name> Do I miss anything?
The "reload deploy-server" command is an additional command which makes the DS reload just the serverclasses (and apps). But it's not the only way. Reloading whole DS config includes this part as well.
Of course restarting the instance causes the config to be rebuilt from currently existing files as well.
In fact if you run
splunk reload deploy-server -debug
you'll see that it just calls
DEBUG (__init__) simpleRequest > POST https://127.0.0.1:8089/services/deployment/server/config/_reload [] sessionSource=direct timeout=360
So it's just a convenient way to call _reload on one of the configuration endpoints. If you reload whole config, this one will get reloaded as well.
@spl_aficionado Just to bring clarity to this and good observation. When a deployment client connects to the deployment server, Splunk checks the checksum of every app package in the serverclass. If the checksum differs from what the client already has, the app is redeployed. So, after a DS bounce, the clients re‑establish their connection and the DS re‑evaluates all serverclass packages, which can look like a full redeploy cycle. In reality, only apps whose checksums have changed since the last connection are actually pushed, but because the DS has restarted and lost its cached state, it re‑runs the comparison for every app. Hope it clarifies.
>>
If this post addressed your question, you can:
Acknowledging helpful answers keeps the community strong and motivates contributors to continue sharing their expertise.
>>
In my understanding this will update the checksum of apps in this serverclass items. But if there have been some other changes which have earlier updated then also those are checked when DCs’ have connected to DS and normal check has done.
When DC connect to DS it will check checksum of all available packages and then fall which have changed.