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 the cache that you specify.
Test Stress Through NCache Management Center
Follow the steps mentioned below to simulate your Pub/Sub Messaging cache usage under stress through NCache Management Center:
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251on Windows and Linux.
From the left navigation bar, click on Clustered Caches.
You can also use the Test Stress button against your selected cache in the Clustered Caches page.
- Select the Pub/Sub Messaging cache you want to simulate and click on the "..." button against it. This will open up a dropdown menu of various operations that you can perform on a cluster.
You can also access the monitoring dashboard page by pressing the Monitor button against the selected cache cluster.
- From these options, select Monitor Cluster if you want to visually see the counters updating, or select Show Statistics if you want to view the stats of your Pub/Sub Messaging cache.
View Simulation Through NCache Monitor
NCache Monitor provides a graphical view dashboard to monitor Pub/Sub Messaging cache counters. If you choose to view Pub/Sub Messaging cache usage simulation through NCache Monitor, follow these steps:
- Click on the Test-Stress button. This will open up a dialog box through which you can customize your simulation.
In the dialogue box, you can choose the Test-Stress timer for 10 or 30 seconds or 1, 3, or 5 minutes, depending on your choice.
As soon as you press the Start button, you can visualize various cache operations that take place on the Client Dashboard.
You can view that the data is being added in the cache through the counters displayed on NCache Monitor. After the set expiration interval has elapsed, the counters will show data being removed from the cache.
View Simulation Through NCache Statistics
NCache Statistics provides a report view of various Pub/Sub Messaging cache counters. If you choose to simulate Pub/Sub Messaging cache usage through statistics, then follow these steps:
- On the statistics board, click on the Test-Stress button. This opens up a dialog box through which you can customize your simulation.
In the dialogue box, you can choose the Tess-Stress timer for 10 or 30 seconds or 1, 3, or 5 minutes, depending on your choice.
As soon as you press the Start button, you can view the statistics for different operations on the Pub/Sub Messaging cache.
You can view that the data is being added 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 Command Line Interface
You can quickly run a Stress Test Tool that comes with NCache installation by typing the following command in Windows PowerShell:
Test-Stress –CacheName demoPubSubCache