Device Cache Warmup

The Device Cache Warmup microservice runs a job that preloads devices from a set of zones into the Coherence cache. You run it once manually, after first deploying the Coherence microservice. You may need to run it again if you redeploy Coherence or if the cache entries expire according to the Time to Live (TTL) setting. To run the job again, undeploy and redeploy the microservice.

The Device Cache Warmup microservice adds cache entries with keys in the format Device:<DeviceID>. After loading the entries, you can use a cache lookup processor in an FCOM override to look up these keys and get the device IDs into FCOM. See FCOM Lookups and Cache Lookup Properties for more information.

This microservice is part of the Event microservice pipeline. See Understanding Microservice Pipelines in Unified Assurance Concepts for conceptual information about microservice pipelines.

Device Cache Warmup Prerequisites

Before deploying the microservice, confirm that the following prerequisites are met:

  1. A microservice cluster is set up. See Microservice Cluster Setup.

  2. The following microservices are installed:

Deploying Device Cache Warmup

To deploy the microservice, run the following commands:

su - assure1
export NAMESPACE=<namespace>
export WEBFQDN=<WebFQDN> 
a1helm install <microservice-release-name> assure1/device-cache-warmup -n $NAMESPACE --set global.imageRegistry=$WEBFQDN

In the commands:

You can also use the Unified Assurance UI to deploy microservices. See Deploying a Microservice by Using the UI for more information.

Changing Device Cache Warmup Configuration Parameters

When running the install command, you can optionally change default configuration parameter values by including them in the command with additional --set arguments. You can add as many additional --set arguments as you need.

For example:

Default Device Cache Warmup Configuration

The following table describes the default configuration parameters found in the Helm chart under configData for the microservice.

Name Default Value Possible Values Notes
LOG_LEVEL "INFO" FATAL, ERROR, WARN, INFO, DEBUG The logging level used by the microservice.
STREAM_INPUT mysql:///Assure1/Devices Text, 255 characters The MySQL connection URI.
STREAM_OUTPUT coherence://coherence-cluster-extend.a1-cache:20000 Text, 255 characters The Coherence server hostname and port.
CACHE_TTL "21600" Number The TTL, in seconds, set on each record in the cache.
BATCH_SIZE "20000" Number The number of records to load. A higher batch size uses more resources but decreases the total processing time.
ZONES "1" Text, 255 characters A comma separated list of zones to load devices from. Set this to an empty string ("") to load devices from all zones.