Deployment Architecture

Can we deploy, using deployment server, an app with state disabled?

somesoni2
Revered Legend

Hi There,

I have a failover instance of Splunk and an app with scheduled searches with summary indexing enabled. My requirement is that the scheduled search of app in failover instance should be disabled state, to avoid duplicate data as prod version is also running. During failover, we can manually enable the scheduled searches on failover.

One simple solution that I reached to (for minimal manual work during failover) is that to deploy the app as disabled in failover instance and just enable the app during failover.

Can anyone help me confirm if this will work, deploying an app with state as disabled using deployment server?

0 Karma
1 Solution

mloven_splunk
Splunk Employee
Splunk Employee

Yep. Take a look at this option in serverclass.conf:

stateOnClient = enabled | disabled | noop
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.
    * If set to "noop", the state on the client will be the same as on the deployment server.
    * Can be overridden at the serverClass level and the serverClass:app level.
    * Defaults to enabled.

View solution in original post

mloven_splunk
Splunk Employee
Splunk Employee

Yep. Take a look at this option in serverclass.conf:

stateOnClient = enabled | disabled | noop
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.
    * If set to "noop", the state on the client will be the same as on the deployment server.
    * Can be overridden at the serverClass level and the serverClass:app level.
    * Defaults to enabled.

somesoni2
Revered Legend

Wow, I must be half asleep not to see this...Thanks a lot...

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...