Simulate Pub/Sub Messaging Cache Usage
To simulate the usage of your created Pub/Sub Messaging Cache, NCache provides the Test Stress option. The Test Stress mechanism simulates heavy transactional load under stress on your Pub/Sub Messaging Cache. You can then view Pub/Sub counters provided by NCache either through NCache Statistics or the PerfMon tool.
Test Stress Through the NCache Management Center
Follow the steps mentioned below to simulate your Pub/Sub cache usage under stress through the NCache Management Center:
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.From the left navigation bar, click on Clustered Caches.
Select your cache and click on .
Once the Test-Stress button is clicked, you will be prompted with a dropdown menu where you will have to specify the time for the stress test. After selecting the time, click on the start button.
View Simulation Through NCache Statistics
- Go to the statistics page by clicking against your selected cache in the NCache Management Center.
- You can view that the data is being added to the cache through the counters shown on the screen. After the set expiration interval has elapsed, the counters will show data being removed from the cache.
Test Stress Through NCache PowerShell Cmdlet
You can quickly run a Stress Test Tool that comes with NCache installation by typing the following command in Windows PowerShell:
Test-Stress –CacheName demoClusteredCache
This command starts making cache calls to the cache servers as Test-Stress simulates a transactional load on the specified cache.
See Also
Create Pub/Sub Messaging Cache
Monitor Pub/Sub Messaging Cache
NCache Programmer's Guide