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/7.4/references/rest-api/requests/bdbs/actions/optimize_shards_placement.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Get optimized shards placement for the given database.
36
36
#### Example HTTP request
37
37
38
38
```sh
39
-
GET /bdbs/1/actions/optimize_shards_placement
39
+
GET /v1/bdbs/1/actions/optimize_shards_placement
40
40
```
41
41
42
42
#### Query parameters
@@ -55,12 +55,12 @@ Include query parameters in a `GET` request to generate an optimized shard place
55
55
The following example request includes `shards_count` and `memory_size` as query parameters:
56
56
57
57
```sh
58
-
GET /bdbs/1/actions/optimize_shards_placement?shards_count=10&memory_size=10000
58
+
GET /v1/bdbs/1/actions/optimize_shards_placement?shards_count=10&memory_size=10000
59
59
```
60
60
61
61
### Response {#get-response}
62
62
63
-
To rearrange the database shards, you can submit the blueprint returned in this response body as the `shards_blueprint` field in the [`PUT` `/bdbs/{uid}`](#put-bdbs-rearrange-shards) request.
63
+
To rearrange the database shards, you can submit the blueprint returned in this response body as the `shards_blueprint` field in the [`PUT` `/v1/bdbs/{uid}`](#put-bdbs-rearrange-shards) request.
64
64
65
65
#### Example JSON body
66
66
@@ -125,9 +125,9 @@ To rearrange the database shards, you can submit the blueprint returned in this
Use the blueprint returned by the [`GET` `/bdbs/{uid}/actions/optimize_shards_placement`]({{< relref "/operate/rs/references/rest-api/requests/bdbs/actions/optimize_shards_placement#get-bdbs-actions-optimize-shards-placement" >}}) request as the value of the `shards_blueprint` field to rearrange the database shards.
128
+
Use the blueprint returned by the [`GET` `/v1/bdbs/{uid}/actions/optimize_shards_placement`]({{< relref "/operate/rs/references/rest-api/requests/bdbs/actions/optimize_shards_placement#get-bdbs-actions-optimize-shards-placement" >}}) request as the value of the `shards_blueprint` field to rearrange the database shards.
129
129
130
-
To ensure that the optimized shard placement is relevant for the current cluster state, pass the `cluster-state-id`, taken from the response header of the `GET` request, in the [`PUT` `/bdbs/{uid}`]({{< relref "/operate/rs/references/rest-api/requests/bdbs#put-bdbs" >}}) request headers.
130
+
To ensure that the optimized shard placement is relevant for the current cluster state, pass the `cluster-state-id`, taken from the response header of the `GET` request, in the [`PUT` `/v1/bdbs/{uid}`]({{< relref "/operate/rs/references/rest-api/requests/bdbs#put-bdbs" >}}) request headers.
131
131
132
132
The cluster will reject the update if its state was changed since the optimal shards placement was obtained.
133
133
@@ -136,7 +136,7 @@ The cluster will reject the update if its state was changed since the optimal sh
0 commit comments