When I started to use the Get-CacheStatistics cmdlet to monitor caching activities more intensivley I was often confused. Here an example: Should not be ReadCount+WriteCount = RequestCount? Why is WriteRequestCount increasing +2 although I just send one put request? By talking to Microsoft support I figured out how AppFabric cache calculates its numbers (Thanks to Gayathri from Distributed Service Team). Number calculation behavior depends on your configuration, high availability and local cache have a major impact on it. Activity RequestCount ReadRequestCount WriteRequestCount MissCount DataCacheFactory is initialized and Named Cache is up +1 - - - Put item, not yet in local and server cache +1 - +1 (+2 with HA) +1 Get item from local cache - - - - Get item from server cache, local cache has expired +1 +1 - - Get item, local and server cache has expired +1 +1 - +1 I hope this is helpful for you when you are analyzing the caching behavior for your application.
Comments
Post a Comment
When you comment on my blog, the form data you enter (and possibly other personal data, such as your IP address) is sent to Google servers. For more information, see my privacy statement (https://www.rack-my-brain.com/p/privacy.html) and Google's privacy statement (https://policies.google.com/privacy).