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/rs/clusters/configure/rack-zone-awareness.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,55 +84,63 @@ If you did not configure rack-zone awareness during cluster creation, you can co
84
84
{ "rack_aware": true }
85
85
```
86
86
87
-
## Set up two-dimensional rack-zone awareness
87
+
## Set up two-dimensional rack-zone awareness
88
+
89
+
As of Redis Enterprise Software version 7.22, you can assign a `second_rack_id` to set up two-dimensional rack-zone awareness.
88
90
89
91
### New clusters
90
92
91
93
To set up two-dimensional rack-zone awareness during cluster creation, assign a `second_rack_id` to each node in the cluster in addition to the `rack_id` using the [REST API]({{<relref "/operate/rs/references/rest-api">}}) or [rladmin]({{<relref "/operate/rs/references/cli-utilities/rladmin">}}).
92
94
93
95
#### REST API method
94
96
95
-
To create a new cluster with two-dimensional rack-zone awareness using the [REST API]({{<relref "/operate/rs/references/rest-api">}}):
97
+
To create a new cluster with two-dimensional rack-zone awareness, you can use [bootstrap REST API requests]({{<relref "/operate/rs/references/rest-api/requests/bootstrap#post-bootstrap">}}):
96
98
97
-
1. Create the new cluster on a node:
99
+
1. Create the new cluster on the first node, set`rack_aware` to `true`, and assign a `rack_id` and `second_rack_id` to the first node:
98
100
99
101
```sh
100
102
POST /v1/bootstrap/create_cluster
101
103
{
102
104
"action": "create_cluster",
103
105
"cluster": {
104
-
"nodes": [],
105
-
"name": "<cluster.name>"
106
-
},
107
-
"node": {
108
-
"rack_id": "<AZ1>",
109
-
"second_rack_id": "<RackID1>"
106
+
"nodes": [],
107
+
"name": "<cluster.fqdn>"
110
108
},
111
-
"license": "----- LICENSE START -----\n...\n----- LICENSE END -----\n",
112
109
"credentials": {
113
110
"username": "<admin-email>",
114
111
"password": "<admin-password>"
112
+
},
113
+
"node": {
114
+
"identity": {
115
+
"rack_id": "<availability-zone-ID>",
116
+
"second_rack_id": "<rack-ID>"
117
+
}
118
+
},
119
+
"policy": {
120
+
"rack_aware": true
115
121
}
116
122
}
117
123
```
118
124
119
-
1. Join each new node you want to add to the cluster:
125
+
1. Join each new node you want to add to the cluster and assign a different `rack_id` and `second_rack_id` to it:
120
126
121
127
```sh
122
128
POST /v1/bootstrap/join_cluster
123
129
{
124
130
"action": "join_cluster",
125
131
"cluster": {
126
132
"nodes": [],
127
-
"name": "<cluster.name>"
133
+
"name": "<cluster.fqdn>"
128
134
},
129
-
"node": {
130
-
"rack_id": "<AZ1>",
131
-
"second_rack_id": "<RackID2>"
132
-
}
133
135
"credentials": {
134
136
"username": "<admin-email>",
135
137
"password": "<admin-password>"
138
+
},
139
+
"node": {
140
+
"identity": {
141
+
"rack_id": "<availability-zone-ID>",
142
+
"second_rack_id": "<rack-ID>"
143
+
}
136
144
}
137
145
}
138
146
```
@@ -170,7 +178,7 @@ For each node in the cluster, assign a different `second_rack_id` using the REST
0 commit comments