Custom HCL Cache configuration
Settings in the custom configuration file, which shares the same format as the default configuration file, override settings in the default configuration file.
The cache_cfg-ext.yaml file is contained in the config maps in Kubernetes.
Important: The custom configuration file
(cache_cfg-ext.yaml) is merged with the default configuration file and
allows the overriding of default configurations. If you are customizing an existing cache,
include the complete cache definition in the custom configuration file.
Modify or
extend the function of the HCL Cache by making changes to this file. Required
or other default settings which are not present in this file will fall back to their values that
are found in the default configuration file. - Cache_cfg-ext.yaml file changes:
# cache_cfg-ext.yaml content read from values redis: enabled: true yamlConfig: "/SETUP/hcl-cache/redis_cfg.yaml" # Please leave this line untouched cacheConfigs: services/cache/WCSessionDistributedMapCache: localCache: enabled: true
- configMaps values:
apiVersion: v1 data: cache_cfg-ext.yaml: |- # cache_cfg-ext.yaml content read from values redis: enabled: true yamlConfig: "/SETUP/hcl-cache/redis_cfg.yaml" # Please leave this line untouched cacheConfigs: services/cache/WCSessionDistributedMapCache: localCache: enabled: true codec: compressing redis_cfg.yaml: |- # redis_cfg.yaml content read from values singleServerConfig: idleConnectionTimeout: 10000 connectTimeout: 3000 timeout: 1000 retryAttempts: 1 retryInterval: 500 subscriptionsPerConnection: 5 sslEnableEndpointIdentification: true sslProvider: "JDK" pingConnectionInterval: 0 keepAlive: true tcpNoDelay: true address: "redis://redis-master.redis.svc.cluster.local:6379" subscriptionConnectionMinimumIdleSize: 1 subscriptionConnectionPoolSize: 50 connectionMinimumIdleSize: 24 connectionPoolSize: 64 database: 0 dnsMonitoringInterval: 5000 password: "${JNDI/ENCRYPTED:REDIS_PASSWORD_ENCRYPT:-}" threads: 16 nettyThreads: 32 referenceEnabled: true transportMode: "NIO" lockWatchdogTimeout: 30000 keepPubSubOrder: true useScriptCache: false minCleanUpDelay: 5 maxCleanUpDelay: 1800 addressResolverGroupFactory: !<org.redisson.connection.DnsAddressResolverGroupFactory> {} kind: ConfigMap metadata: creationTimestamp: "2021-01-06T09:07:25Z" labels: app: HCL-Commerce chart: hcl-commerce-2.1.0 release: demo-qa-share name: demo-qa-share-demoqa-hcl-cache-config namespace: commerce resourceVersion: "76316982" selfLink: /api/v1/namespaces/commerce/configmaps/demo-qa-share-demoqa-hcl-cache-config uid: ff3f2f1d-8608-4019-b6bc-cd2136dadcda
Note: Share, Live and Auth are
the three configuration maps; always synchronize changes between these
maps.