Tutorial: Operating dynacache in a production environment
Until this point, the tutorials have focused on dynacache functionality in a basic environment. This tutorial addresses issues and concerns associated with operating dynacache in a production environment. In particular, tuning parameters for disk offload, and cache replication. After completing this tutorial, we will setup cache replication in the environment, and tune the dynacache settings to facilitate more efficient invalidation of the cache entries residing on the disk.
Learning objectives
Operate WebSphere Commerce in a production environment introduces complexities that will now be addressed.
For example, accessing cache entries that have been offloaded from memory introduces overhead associated with reading from and writing to the disk. Invalidating these entries is time consuming. Therefore, it is important to tune the cache using the available properties. By setting these values to the appropriate values, you improve the cache invalidation process.
The second issue will address is cache replication. When WebSphere Commerce is in a clustered environment, you require a replication environment to share the cache entries between the different nodes in the environment.
Time required
Expect this tutorial to take about 15 minutes to complete.
Audience
This tutorial is intended for WebSphere Commerce Administrators who will be responsible for operating dynacache in a production environment.
Prerequisites
To complete this tutorial, you need WebSphere Application Server v6.0 and WebSphere Commerce v6.0.
For Step 6, you need a clustered WebSphere Commerce environment, complete with a Deployment Manager node.
Expected results
In this tutorial, we will learn how to improve the performance of the dynacache's disk offload capabilities by using the following properties:
- com.ibm.ws.cache.CacheConfig.DelayOffloadEntriesLimit
- com.ibm.ws.cache.CacheConfig.DelayOffload
- com.ibm.ws.cache.CacheConfig.DelayOffloadEntriesLimit
- You also learned how to configure Cache Replication in a clustered environment.
Lessons in this tutorial
- Tune parameter: Delay Offload Entries Limit
This section is related to Delay Offload Entries Limit.
- Tune parameter: delay offload
This section is related to delay offload..
- Tune parameter: cleanup frequency
Use this property to change the amount of time between disk cache cleanups.
- Tune parameter: flush to disk
This section is related to flush to disk..
- Set up cache replication in a clustered environment
This section gives instructions for setting up cache replication in a clustered environment.
- Configure cache monitor in a clustered environment
This section is related to configuring cache monitor in a clustered environment.