10.2 Enable Caching

When you enable caching, it optimizes the read and write operations for the transaction logs that are stored in etcd or Oracle Database. This in turn improves the performance.

You can not enable caching if you use internal memory as the transaction store.
To enable caching, perform the following tasks:
  1. Open the values.yaml file in any code editor. This file is located in the installation_directory\otmm-RELEASE\otmm\helmcharts folder.
  2. In the YAML file, set tmmConfiguration.caching.enabled to true and specify the maximum storage capacity of the cache in GB. The following code snippet provides sample values for the caching property in the values.yaml file.
    caching:
      enabled: true
      maxCapacity: 1.5
  3. Save your changes.
  4. Enable session affinity for the coordinator. See Enable Session Affinity.