Active-Active examples
YAML examples for Active-Active Redis Enterprise databases across multiple Kubernetes clusters.
Redis Enterprise for Kubernetes |
---|
This page provides YAML examples for deploying Active-Active Redis Enterprise databases across multiple Kubernetes clusters. Active-Active databases provide multi-master replication with conflict resolution, enabling global distribution and local read/write access.
To learn more, see Active-Active databases.
Architecture
This example shows a two-cluster Active-Active setup:
- Cluster 1:
rec-chicago
in namespacens-chicago
- Cluster 2:
rec-boston
in namespacens-boston
For complete deployment instructions, see Active-Active databases.
RERC for Chicago cluster
Create a RedisEnterpriseRemoteCluster (RERC) resource on each participating cluster that points to the other clusters.
RERC configuration:
metadata.name
: Unique name for this remote cluster referencespec.recName
: Name of the remote RECspec.recNamespace
: Namespace of the remote RECspec.apiFqdnUrl
: API endpoint URL for the remote clusterspec.dbFqdnSuffix
: Database hostname suffix for the remote clusterspec.secretName
: Secret containing authentication credentials
Edit the values in the downloaded YAML file for your specific setup, updating the remote cluster details, API endpoints, and secret names to match your actual environment.
Active-Active database
The RedisEnterpriseActiveActiveDatabase (REAADB) resource defines the Active-Active database.
REAADB configuration:
metadata.name
: Active-Active database namespec.participatingClusters
: List of RERC names that participate in this databasespec.globalConfigurations
: Database settings applied to all participating clusters
Edit the downloaded YAML file to add global database settings such as memory allocation, shard count, replication settings, database secrets, Redis modules, and database-specific Redis configuration.
Applying the configuration
To deploy Active-Active databases using these YAML files, follow Create Active-Active database (REAADB), which provides detailed instructions for preparing clusters, creating RERC resources, and deploying REAADB configurations.