You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/operate/kubernetes/active-active/_index.md
+4-21Lines changed: 4 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,39 +52,22 @@ For versions 6.4.2 or earlier, this Active-Active setup method includes the foll
52
52
53
53
To create an Active-Active Redis Enterprise deployment for Kubernetes with these new features, first [prepare participating clusters]({{< relref "/operate/kubernetes/active-active/prepare-clusters" >}}) then [create an Active-Active database]({{< relref "/operate/kubernetes/active-active/create-reaadb" >}}).
54
54
55
-
### Preview versions
56
-
57
-
If you are using a preview version of these features (operator version 6.4.2-4 or 6.4.2-5), you'll need to enable the Active-Active controller with the following steps. You need to do this only once per cluster. We recommend using the fully supported 6.4.2-6 version.
58
-
59
-
1. Download the custom resource definitions (CRDs) for the most recent release (6.4.2-4) from [redis-enterprise-k8s-docs Github](https://github.com/RedisLabs/redis-enterprise-k8s-docs/tree/master/crds).
60
-
61
-
1. Apply the new CRDs for the Redis Enterprise Active-Active database (REAADB) and Redis Enterprise remote cluster (RERC) to install those controllers.
62
-
63
-
```sh
64
-
kubectl apply -f crds/reaadb_crd.yaml
65
-
kubectl apply -f crds/rerc_crd.yaml
66
-
```
67
-
68
-
1. Enable the Active-Active and remote cluster controllers on the operator ConfigMap.
69
-
70
-
```sh
71
-
kubectl patch cm operator-environment-config --type merge --patch "{\"data\": \
Redis Enterprise Active-Active database (REAADB) contains a link to the RERC for each participating cluster, and provides configuration and status to the management plane.
79
58
80
59
For a full list of fields and options, see the [REAADB API reference]({{<relref "/operate/kubernetes/reference/api/redis_enterprise_active_active_database_api">}}).
81
60
61
+
For examples, see the [YAML examples]({{< relref "/operate/kubernetes/reference/yaml/active-active" >}}) section.
62
+
82
63
### RERC custom resource
83
64
84
65
Redis Enterprise remote cluster (RERC) custom resource contains configuration details for all the participating clusters.
85
66
86
67
For a full list of fields and options, see the [RERC API reference]({{<relref "/operate/kubernetes/reference/api/redis_enterprise_remote_cluster_api">}}).
87
68
69
+
For examples, see the [YAML examples]({{< relref "/operate/kubernetes/reference/yaml/active-active" >}}) section.
70
+
88
71
### Limitations
89
72
90
73
* Existing Redis databases cannot be migrated to a REAADB. (DOC-3594)
1. Create a `RedisEnterpriseActiveActiveDatabase` (REAADB) custom resource file meeting the naming requirements and listing the names of the RERC custom resources created in the last step.
100
78
101
-
Naming requirements:
102
-
* less than 63 characters
103
-
* contains only lowercase letters, numbers, or hyphens
104
-
* starts with a letter
105
-
* ends with a letter or digit
106
-
107
-
Example REAADB named `reaadb-boeing` linked to the REC named `rec-chicago` with two participating clusters and a global database configuration with shard count set to 3:
108
-
109
-
```yaml
110
-
apiVersion: app.redislabs.com/v1alpha1
111
-
kind: RedisEnterpriseActiveActiveDatabase
112
-
metadata:
113
-
name: reaadb-boeing
114
-
spec:
115
-
globalConfigurations:
116
-
databaseSecretName: <my-secret>
117
-
memorySize: 200MB
118
-
shardCount: 3
119
-
participatingClusters:
120
-
- name: rerc-ohare
121
-
- name: rerc-reagan
122
-
```
123
-
124
-
{{<note>}}Sharding is disabled on Active-Active databases created with a `shardCount` of 1. Sharding cannot be enabled after database creation. {{</note>}}
125
-
126
-
For more details on RERC fields, see the [RERC API reference]({{<relref "/operate/kubernetes/reference/api/redis_enterprise_remote_cluster_api">}}).
127
-
128
-
1. Create a Redis Enterprise Active-Active database from the REAADB custom resource file.
129
-
130
-
```sh
131
-
kubectl create -f <reaadb-file>
132
-
```
79
+
Naming requirements:
80
+
* less than 63 characters
81
+
* contains only lowercase letters, numbers, or hyphens
82
+
* starts with a letter
83
+
* ends with a letter or digit
84
+
85
+
Example REAADB named `reaadb-boeing` linked to the REC named `rec-chicago` with two participating clusters and a global database configuration with shard count set to 3:
1. Check the status of your RERC. If `STATUS` is `Active` and `SPEC STATUS` is `Valid`, your configurations are correct.
89
+
{{<note>}}Sharding is disabled on Active-Active databases created with a `shardCount` of 1. Sharding cannot be enabled after database creation. {{</note>}}
90
+
91
+
For more details on RERC fields, see the [RERC API reference]({{<relref "/operate/kubernetes/reference/api/redis_enterprise_remote_cluster_api">}}).
92
+
93
+
2. Create a Redis Enterprise Active-Active database from the REAADB custom resource file.
135
94
136
-
```sh
137
-
kubectl get reaadb <reaadb-name>
138
-
```
95
+
```sh
96
+
kubectl create -f<reaadb-file>
97
+
```
139
98
140
-
The output should look similar to:
99
+
3. Check the status of your RERC. If `STATUS` is `Active` and `SPEC STATUS` is `Valid`, your configurations are correct.
100
+
101
+
```sh
102
+
kubectl get reaadb <reaadb-name>
103
+
```
141
104
142
-
```sh
143
-
kubectl get reaadb reaadb-boeing
105
+
The output should look similar to:
144
106
145
-
NAME STATUS SPEC STATUS LINKED REDBS REPLICATION STATUS
146
-
reaadb-boeing active Valid up
147
-
```
107
+
```sh
108
+
kubectl get reaadb reaadb-boeing
148
109
110
+
NAME STATUS SPEC STATUS LINKED REDBS REPLICATION STATUS
111
+
reaadb-boeing active Valid up
112
+
```
149
113
150
-
In case of errors, review the REAADB custom resource events and the Redis Enterprise operator logs.
114
+
In case of errors, review the REAADB custom resource events and the Redis Enterprise operator logs.
151
115
152
116
## Example values
153
117
154
-
This article uses the following example values:
118
+
This article uses the example values listed below. You can also find them in the [YAML examples]({{< relref "/operate/kubernetes/reference/yaml/active-active" >}}) section.
155
119
156
-
#### Example cluster 1
120
+
Example cluster 1:
157
121
158
122
* REC name: `rec-chicago`
159
123
* REC namespace: `ns-illinois`
@@ -162,7 +126,7 @@ This article uses the following example values:
162
126
* API FQDN: `api-rec-chicago-ns-illinois.example.com`
163
127
* DB FQDN suffix: `-db-rec-chicago-ns-illinois.example.com`
0 commit comments