Manage the KV store workload with read-only mode
These instructions apply only to Splunk Enterprise 9.4.2 and higher.
You can temporarily forcibly stop all writes to the KV store using read-only mode. The most likely case in which you might want to use read-only mode is during the KV store server version upgrade, because heavy writes to the KV store during the upgrade can cause it to fail. For more information about the server version upgrade, see Upgrade the KV store server version.
In a clustered deployment of Splunk Enterprise, you can determine if you need to block writes to the KV store by detecting the KV store's workload. Complete the following steps to determine if you have a high workload, and, if necessary, upgrade a clustered deployment of Splunk Enterprise and the KV store using read-only mode.
After completing these steps, your Splunk Enterprise and KV store server version upgrades are complete.
To troubleshoot this process or learn more about it, see Upgrade the KV store server version
You can turn on or off read-only mode at any time by entering the following commands into the CLI. If you have a clustered deployment, enter these commands from the KV store captain.
splunk enable kvstore-maintenance-mode -readOnly true
To turn off read-only mode, use the following command.splunk disable kvstore-maintenance-mode -readOnly true