cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change region cache use SPEL V2105

djboyd4715
Participant
0 Kudos
726

We are working on an upgrade from CCV1 V6.4 to CCV2 V2105.

Understanding is that when deploying to the SAP Public cloud, it is strongly recommended to make use of dynamic allocation instead of fix.

At this time we have defined 4 custom cache regions as well as have set the size for the standard OOTB regions. Here is what we have for our 6.4.

  • regioncache.productregion.size=2500
  • regioncache.pricerowregion.size=32000
  • regioncache.unitcacheregion.size=5000
  • regioncache.userscacheregion.size=25000
OOTB
  • regioncache.querycacheregion.size=150000
  • regioncache.entryregion.size=150000
  • regioncache.typesystemregion.size=50000


Do I do something like the following where heap size is 4 GB

{ "key":"regioncache.productregion.size", "value":"#{ 2500000 * ( T(java.lang.Runtime).runtime.maxMemory() / ( 1024 * 1024 * 1024 * 4.0 ) ) }"

},

{ "key":"regioncache.pricerowregion.size", "value":"#{ 32000000 * ( T(java.lang.Runtime).runtime.maxMemory() / ( 1024 * 1024 * 1024 * 4.0 ) ) }"

},

Accepted Solutions (0)

Answers (1)

Answers (1)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

So you customized the region cache on CCv1 by adding 4 custom regions and configured the OOTB regions as well, on CCv2 you will need to move the customization and configuration as well.

And you can even reuse your existing local configuration files like local.properties file on CCv2, by mentioning the local files in manifest.json file.

Javed4
Newcomer
0 Kudos
what should be the max limit for regioncache.entryregion.size? By default it is 100K.
samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos
Did you mean entityregion and not entryregion? We don't have entry region. The max limit could depend on the total heap memory allocated to the JVM process. In a small or medium size sandbox environment, it could be 500k ~ 800k. Also the total cache size for all regions depends on your Commerce Cloud license.