Redis

Overview

The Redis microservice is an in-memory data structure store, used as a distributed, in-memory key–value database, cache and message broker, with optional durability. The image is built with modules such as Redis Graph, Redis JSON, RediSearch, and Redis Time Series. The chart is configured to run the device and topology warmup cache microservices immediately after installation. It runs in the a1-cache namespace and provides an in-cluster storage location for other microservices.

Prerequisites

  1. A microservices cluster must be setup. Refer to Microservice Cluster Setup.

Setup

su - assure1
export WEBFQDN=<Primary Presentation Web FQDN> 
a1helm install redis assure1/redis -n a1-cache --set global.imageRegistry=$WEBFQDN

Default Configuration

Name Value Possible Values Notes
LOG_LEVEL INFO FATAL, ERROR, WARN, INFO, DEBUG Logging level used by application.
ZONES "1" Text, 255 characters A comma separated list of zones. All zones are preloaded if an empty string is set.

Configurations can be changed by passing the values to the a1helm install prefixed with the configData parent key.

Example of accessing the redis cli

a1k exec -it redis-master-0 -n a1-cache -- /bin/bash
redis-cli --tls --cert /certs/a1/User-assure1.crt --key /certs/a1/User-assure1.key --cacert /certs/a1/BundleCA.crt

Example of setting the log level to DEBUG

a1helm install ... --set configData.LOG_LEVEL=DEBUG

Example of loading all zones

a1helm install redis assure1/redis -n a1-cache --set global.imageRegistry=$WEBFQDN --set-string configData.ZONES=""

Example of loading zone id 2

a1helm install redis assure1/redis -n a1-cache --set global.imageRegistry=$WEBFQDN --set-string configData.ZONES="2"

Example of loading zone ids 1, 2, 3, 4

a1helm install redis assure1/redis -n a1-cache --set global.imageRegistry=$WEBFQDN --set-string configData.ZONES="1\,2\,3\,4"