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/references/rest-api/requests/bdbs/actions/optimize_shards_placement.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Get optimized shards placement for the given database.
35
35
#### Example HTTP request
36
36
37
37
```sh
38
-
GET /bdbs/1/actions/optimize_shards_placement
38
+
GET /v1/bdbs/1/actions/optimize_shards_placement
39
39
```
40
40
41
41
#### Query parameters
@@ -54,12 +54,12 @@ Include query parameters in a `GET` request to generate an optimized shard place
54
54
The following example request includes `shards_count` and `memory_size` as query parameters:
55
55
56
56
```sh
57
-
GET /bdbs/1/actions/optimize_shards_placement?shards_count=10&memory_size=10000
57
+
GET /v1/bdbs/1/actions/optimize_shards_placement?shards_count=10&memory_size=10000
58
58
```
59
59
60
60
### Response {#get-response}
61
61
62
-
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.
62
+
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.
63
63
64
64
#### Example JSON body
65
65
@@ -124,9 +124,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.
127
+
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.
128
128
129
-
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.
129
+
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.
130
130
131
131
The cluster will reject the update if its state was changed since the optimal shards placement was obtained.
132
132
@@ -135,7 +135,7 @@ The cluster will reject the update if its state was changed since the optimal sh
0 commit comments