Simulate Distributed Cache with Persistence Usage
To simulate the usage of your distributed cache with persistence, 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 Web Manager
Follow the steps mentioned below to simulate your distributed cache with persistence usage under stress through NCache Web Manager:
Launch NCache Web Manager by browsing to
<server-ip>:8251
.From the left navigation bar, click on Clustered Caches.
- Select the distributed cache with persistence 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.
- 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 distributed cache with persistence.
View Simulation Through NCache Web Monitor
NCache Web Monitor provides a graphical view dashboard to monitor distributed cache with persistence counters. If you choose to view distributed cache with persistence usage simulation through NCache Web Monitor, follow these steps:
- Click on the Test-Stress button. This will open up a dropdown list through which you can customize your simulation.
In the dropdown list, 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 server dashboard.
You can view that the data is being added in the cache through the counters displayed on NCache Web 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 distributed cache with persistence counters. If you choose to simulate distributed cache with persistence usage through statistics, then follow these steps:
- On the statistics board, click on the Test-Stress button. This opens up a dropdown list through which you can customize your simulation.
In the dropdown list, 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 distributed cache with persistence.
You can view that the data is being added through the counters shown on 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 PowerShell:
Test-Stress –CacheName demoPersistenceCache
After executing this command, you can monitor the performance of distributed cache with persistence using PerfMon counters and NCache Monitor.
See Also
Create Distributed Cache with Persistence
Monitor Distributed Cache with Persistence
Use NCache for Data Caching
NCache Programmer's Guide