Redis Cluster and Consul Keys
How the Redis cluster caches configuration data for the HEAL modules, and its service/redis/* Consul keys.
Redis Cluster#
The Redis Cluster functions as a centralized caching mechanism for the HEAL ecosystem, optimizing memory usage and performance across all HEAL modules. It maintains a comprehensive repository of configuration data, accessible by any module in need of this information.
The cluster is designed based on a master-slave architecture, comprising three master nodes paired with three corresponding slave nodes.
This setup ensures redundancy and high availability, with configuration data evenly distributed among the masters. In the event of a master node failure, its designated slave node automatically takes over, maintaining system integrity and continuity.
Note: The cluster must always include three master-slave pairs, each operating on separate servers to enhance reliability and fault tolerance.
Redis can run in two modes, both described in Standalone Mode. In High Availability (HA) mode, the six nodes run on three servers and the data of each master is stored in a slave on another server. In standalone mode, the default configuration, all six nodes run on one server.
The Redis Microservice refreshes this cache from the Percona database every five minutes, and HEAL modules read their configuration data through the cluster instead of querying Percona directly.
Redis Cluster Consul Keys#
Consul keys serve as a bridge between the Redis Cluster and its operational environment, allowing for automated updates and adjustments to the cluster's settings based on real-time changes within the infrastructure.
service/redis/nodes
service/redis/sslenabled
service/redis/username
service/redis/password
service/redis/maxidleconnections
service/redis/minidleconnections
service/redis/maxtotalconnections
service/redis/connections/maxwaittimeinsec
The Redis Authentication procedure in Standalone Mode sets the service/redis/password and service/redis/password/encrypted keys.
For cluster problems, see Redis Cluster Formation Failure and Redis Cluster Issue with Memory and Connections.