Add Test Data
You can quickly run a Stress Test Tool that comes with NCache installation to verify that cache clients can make calls to cache servers. This tool starts making cache calls to the cache servers as it simulates transactional load on the specified cache. You can monitor the cache performance using PerfMon counters and NCache Monitor.
Using PowerShell
Add-TestData cmdlet enables the user to add some test data to the cache to check if the cache has started and is working properly.
The following command adds test data to the cache named demoClusteredCache. It adds 40 items to the cache and the data added will expire after the time duration of 5 minutes.
Add-TestData –CacheName demoClusteredCache –ItemCount 40
Through NCache Web Manager
Follow the steps mentioned below to simulate your cache usage under stress through NCache Web Manager:
Launch NCache Web manager by browsing
http:localhost:8251
(Windows) or<server-ip>:8251
(Windows+Linux).From the left navigation bar, click on Clustered Caches.
- Select the 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.
- 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 the cache you want to simulate.
Through NCache Web Monitor
NCache Web Monitor provides a graphical view dashboard to monitor various cache counters. If you choose to view cache usage simulation through NCache Web 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 the 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 Web Monitor. After the set expiration interval has elapsed, the counters will show data being removed from the cache.
Through NCache Statistics
NCache Statistics provides a report view of various cache counters. If you choose to simulate 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 cache like Additions/sec and Fetches/sec.
You can view that the data is being added in the cache through the counters shown on screen. After the set expiration interval has elapsed, the counters will show data being removed from the cache.
See Also
Create a Cache
Remove Cache
Remove Server Node
Configure Query Indexes