Suspend-NCacheDataPersistence
Suspend-NCacheDataPersistence is the primary cmdlet used for manual write throttling within NCache persistence environments. This command enables engineers and SREs to temporarily halt the asynchronous or synchronous flow of data from the distributed cache to the underlying persistence store.
Suspend-NCacheDataPersistence -CacheName [-Server] [-Port] [-NoLogo]
Examples
- This command halts data persistence of the cache named demoCache on the persistence store.
Suspend-NCacheDataPersistence -CacheName demoCache
- This command halts data persistence of the cache named demoCache on the persistence store on the server 20.200.20.11.
Suspend-NCacheDataPersistence -CacheName demoCache -Server 20.200.20.11
- This command halts data persistence of the cache named demoCache on the persistence store, using security credentials.
Suspend-NCacheDataPersistence -CacheName demoCache -Credentials(Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the cache to suspend persistence. It should be a running cache with persistence. Note: The cache must already exist on the source server. |
- |
-Server |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered, separated by commas e.g. 20.200.20.11, 20.200.20.12. | IP of local machine |
-Port |
<Integer> |
Specifies the port on which the NCache service is listening. | 8250 |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |