Skip to content

Commit 20e5cfa

Browse files
committed
DOC-4978 Fixes and copy edits for two-dimensional rack-zone awareness
1 parent 02f78d4 commit 20e5cfa

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

content/operate/rs/clusters/configure/rack-zone-awareness.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,55 +84,63 @@ If you did not configure rack-zone awareness during cluster creation, you can co
8484
{ "rack_aware": true }
8585
```
8686
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.
8890
8991
### New clusters
9092
9193
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">}}).
9294
9395
#### REST API method
9496
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">}}):
9698
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:
98100
99101
```sh
100102
POST /v1/bootstrap/create_cluster
101103
{
102104
"action": "create_cluster",
103105
"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>"
110108
},
111-
"license": "----- LICENSE START -----\n...\n----- LICENSE END -----\n",
112109
"credentials": {
113110
"username": "<admin-email>",
114111
"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
115121
}
116122
}
117123
```
118124
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:
120126
121127
```sh
122128
POST /v1/bootstrap/join_cluster
123129
{
124130
"action": "join_cluster",
125131
"cluster": {
126132
"nodes": [],
127-
"name": "<cluster.name>"
133+
"name": "<cluster.fqdn>"
128134
},
129-
"node": {
130-
"rack_id": "<AZ1>",
131-
"second_rack_id": "<RackID2>"
132-
}
133135
"credentials": {
134136
"username": "<admin-email>",
135137
"password": "<admin-password>"
138+
},
139+
"node": {
140+
"identity": {
141+
"rack_id": "<availability-zone-ID>",
142+
"second_rack_id": "<rack-ID>"
143+
}
136144
}
137145
}
138146
```
@@ -170,7 +178,7 @@ For each node in the cluster, assign a different `second_rack_id` using the REST
170178
171179
```sh
172180
PUT /v1/nodes/<node-ID>
173-
{ "second_rack_id": "rack-zone-ID2" }
181+
{ "second_rack_id": "rack-ID" }
174182
```
175183
176184
## Enable database rack-zone awareness

0 commit comments

Comments
 (0)