Configure the Cache Settings for the Historian Tags
About this task
mes-dataservice
and processanalyzer-app-service
microservices for the Analysis application. After the set duration, the Historian tags are cached again.Procedure
-
Based on your type of installation, perform one of the below:
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/mes-dataservice/prod/<version>/, access the mes-dataservice-prod.properties file by using a text editor.
- Standard Installation: In the directory <Installation-directory>\PlantApplicationsWebClient\config-repo\mes-dataservice\prod\<version>, access the mes-dataservice-prod.properties file by using a text editor. Where:
- Enter the properties and their details as described in the following table.
Property Description historianTagMaxCacheSize
Enter the maximum cache size in KB. The default value is 50000
.Example:
historianTagMaxCacheSize=50000
historianTagCacheTimeOut
Enter the duration in the format duration<timeformat>
after which the cached Historian tags are cleared by themes-dataservice-impl
microservice. Where:<timeformat>
ish
,m
, ors
to indicate time in hours, minutes, or seconds, respectively. The default value is6h
.Example:
historianTagCacheTimeOut=6h
scheduler.tagcaching.seconds
Enter the duration in seconds after which the Historian tags are cached again by the mes-dataservice-impl
microservice. The default value is21600
.Example:
scheduler.tagcaching.seconds=21600
Note: The value you enter for thehistorianTagCacheTimeOut
andscheduler.tagcaching.seconds
properties must of the same duration you enter for thetagVariableCacheTimeOut
property in theprocessanalyzer-service-impl
microservice. - Save the changes to your file.
-
Based on your type of installation, perform one of the below:
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/processanalyzer-app-service/prod/<version>/, access the processanalyzer-app-service.properties file by using a text editor.
- Standard Installation: In the directory <Installation-directory>\PlantApplicationsWebClient\config-repo\processanalyzer-app-service\prod\<version>, access the processanalyzer-app-service.properties file by using a text editor. Where:
- For the
tagVariableCacheTimeOut
property, enter the duration in the formatduration<timeformat>
after which the tags are cached again. Where:<timeformat>
ish
,m
, ors
to indicate time in hours, minutes, or seconds, respectively. The default value is6h
. Example:tagVariableCacheTimeOut=6h
Note: The value you enter for thetagVariableCacheTimeOut
property must be of the same duration you enter for thehistorianTagCacheTimeOut
andscheduler.tagcaching.seconds
properties in themes-dataservice-impl
microservice. - Save the changes to your file.
- Restart the mes-dataservice and processanalyzer-app-service services.
Results
mes-dataservice
and processanalyzer-app-service
microservices for the Analysis application.