Test-NCAzStress
This PowerShell cmdlet simulates heavy transactional load on a specified cache under stress in a given environment.
Test-NCAzStress -EnvName -CacheName [-Node] [-DataSize] [-GetsPerIteration] [-ItemsCount] [-ReportingInterval] [-SlidingExpiration] [-TestCaseIterationDelay] [-TestCaseIterations] [-ThreadCount] [-UpdatesPerIteration] [-Credentials] [-NoLogo]
Examples
- This command executes Test-stress on a Cache named demoCache with default settings in the Production environment.
Test-NCAzStress -EnvName Production -CacheName demoCache
- This command executes Test-stress on cache named demoCache on node 10.0.0.4 with default settings in the Production environment.
Test-NCAzStress -EnvName Production -CacheName demoCache -Node 10.0.0.4
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-EnvName* |
<String> |
Specifies the name of the environment where the connected clients should be listed. | - |
-CacheName* |
<String> |
Specifies the name of the cache. | - |
-Node |
<String> |
Specifies one or more ip-address(es) for one or more cache-server(s). This option can be used to customize the list of ip-address(es) to be displayed. Note: Comma separated ip-addresses are to be specified in case of multiple servers inside double quotes. |
- |
-DataSize |
<Integer> |
Specifies the size of each cache item in bytes. | 1024 |
-ItemsCount |
<Integer> |
Specifies how many total items, docs or messages you want to add. | Infinite for all store types. |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |
-SlidingExpiration |
<Integer> |
Specifies in seconds sliding expiration or each item or message. | 300 for Distributed Caches with Persistence enabled, and 60 for DistributedCache and PubSubMessaging store types. |
-TestCaseIterations |
<Integer> |
Specifies the total number of iterations within a test-case. | 20 |
-TestCaseIterationDelay |
<Integer> |
Specifies the delay (in seconds) which can be held in between each iteration. | 0 |
-ThreadCount |
<Integer> |
Specifies the total number of Client threads. Its maximum value is 3. | 1 |
-UpdatesPerIteration |
<Integer> |
Specifies the number of updates performed within a single iteration of a test-case. This is only used in case of DistributedCache. |
1 |
-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. | - |