Improve cache performance
Reduce flash crowds
-
PREFETCH: Refreshes a positive response before it expires to ensure that it never becomes stale or inactive. For more information, see "Refreshing a Response Prior to Expiration" section.
-
Cache buffering: Starts serving a response to multiple clients when it receives the response header from the origin server, rather than waiting for the entire response to be downloaded. The only limit on the number of clients that can download a response simultaneously is the available system resources. The NetScaler appliance downloads and serves responses even if the client that initiated the download halts before the download is complete. If the response exceeds the cache size or if the response is chunked, the cache stops storing the response, but service to the clients is not disrupted.
-
Flash Cache: Flash Cache queues requests to the cache, and allows only one request to reach the server at a time.
Refresh a response before expiration
set cache contentgroup <name> -prefetch YES [-prefetchPeriod <seconds> | -prefetchPeriodMilliSec <milliseconds>] [-prefetchMaxPending <positiveInteger>]
Queue requests to the cache
set cache contentgroup <contentGroupName> -flashcache yes
Cache a response after a client halts a download
set cache contentgroup <name> -quickAbortSize <integerInKBytes>
-
Navigate to Optimization > Integrated Caching > Content Groups, and select the content group.
-
On Memory tab, set the relevant value in Quick Abort: Continue caching if more than text box.
Requiring a minimum number of server hits before caching
set cache contentgroup <name> -minhits <positiveInteger>
-
Navigate to Optimization > Integrated Caching > Content Groups, and select the content group.
-
On Memory tab, set the relevant value in Do not cache, if hits are less than the text box.
Example for performance optimization
-
On the Expiry Method tab, select the Expire after complete response received check box.
-
On the Others tab, select the Flash Cache check box, and click Create.
-
Add a cache policy to cache the stock quotes.
-
In the Action and Store in Group lists, select CACHE and select the group that you defined in the previous step.
-
Click Add, and in the Add Expression dialog box configure an expression that identifies stock quote requests, for example: http.req.url.contains("cgi-bin/stock-quote.pl")
-
Activate the policy.