Configure and Enable Disk Cache in Application Request Routing
Configure primary disk cache location(s).
At least one primary disk cache location must be specified.
To configure a primary disk cache location using the UI:
- Launch IIS Manager.
- The disk cache configuration for ARR is done at the server level. Select the server in the navigation tree view.
- Double-click Application Request Routing Cache.
In the Actions pane, click Add….
- In the Add Drive dialog box, define the Drive location and set a maximum size. If no size is provided, then it will consume all available disk space.
Note: If the drive location was created manually, ensure that the identity of the worker process has the following user rights. In most cases, the local Users group has the sufficient user rights on the folder when it was created.
- List folder contents
- Enter the appropriate values, and then click OK to save the changes. For the purposes of this walkthrough, c:\cache\ is used as the drive location and a maximum size of 10GB has been set. You can enter any value up to your maximum drive size or use the entire drive.
Note: ARR has the concept of a primary drive and a secondary drive. A typical configuration involves one or more primary drives that are local drives, such as e:\cache or f:\cache. However, there can only be one secondary drive and, typically, it is a SAN drive that can be shared between multiple ARRs. The idea is that you have a large SAN drive where more content can be cached than on the local drive of an ARR, and it can also be shared across multiple ARR instances.
Step 2 – Configure secondary disk cache location.
The secondary disk cache location is an optional configuration. As noted above, unlike the primary drive, only one secondary drive can be configured. In a way, the secondary disk cache location is used as a “parent cache tier.” ARR looks for cached content in the secondary drive when it is unable to find it in the primary cache drive location(s). Similarly, when caching content, ARR will cache it on both the primary cache drive location(s) as well as the secondary cache drive location.
To configure a secondary disk cache location using the UI:
- In the Actions pane, click Add Secondary….
- In the Add Secondary Drive dialog box, define the Drive location.
- Enter the appropriate value, and then click OK to save the changes. For the purposes of this walkthrough, \\wonyoo-w2k8-3\SAN\ is used as the secondary cache drive location.
Step 3 – Enable disk cache.
Once the drive location is specified, ARR proxy can choose to use the configured disk cache. There are two levels of proxies in ARR. One is at the server level and the other is at the server farm level. In both cases, the disk cache is enabled by default. Once the primary cache drive location is configured, ARR will start caching contents on disk by default.
The rest of the walkthrough assumes that the server farm has already been created. If not, follow the Define and Configure an Application Request Routing Server Farm walkthrough.
- Select Server Farms.
- Select the server farm that you created.
- The following icons are shown:
- Double-click Caching. Verify that the Enable disk cache checkbox is selected.
Note: Authorization cannot be delegated to ARR. Therefore, if the contents are highly sensitive in nature and require authorization, it is recommended that you do not enable cache.
This entry was posted in Uncategorized
. Bookmark the permalink