Throttle a reindex operation
- POST /_reindex/{task_id}/_rethrottle
Change the number of requests per second for a particular reindex operation. For example:
POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1
Rethrottling that speeds up the query takes effect immediately. Rethrottling that slows down the query will take effect after completing the current batch. This behavior prevents scroll timeouts.
Path Parameters
-
task_idstring Idrequired -
The task identifier, which can be found by using the tasks API.
Query Parameters
-
requests_per_secondnumberrequired The throttle for this request in sub-requests per second. It can be either
-1to turn off throttling or any decimal number like1.7or12to throttle to that level.
Response
-
nodesmap string to ReindexNoderequired -
<string>ReindexNode -
attributesmap string to stringrequired -
hoststringrequired -
ipstringrequired -
namestring Namerequired -
rolesNodeRoles -
Values:
masterdatadata_colddata_contentdata_frozendata_hotdata_warmclientingestmlvoting_onlytransformremote_cluster_clientcoordinating_only -
transport_addressstringrequired -
tasksmap string to ReindexTaskrequired -
<string>ReindexTask -
actionstringrequired -
cancellablebooleanrequired -
descriptionstringrequired -
idnumberrequired -
nodestring Namerequired -
running_time_in_nanosDurationValueUnitNanosrequired -
start_time_in_millisEpochTimeUnitMillisrequired -
statusReindexStatusrequired -
batchesnumberrequired -
The number of scroll responses pulled back by the reindex.
-
creatednumberrequired -
The number of documents that were successfully created.
-
deletednumberrequired -
The number of documents that were successfully deleted.
-
noopsnumberrequired -
The number of documents that were ignored because the script used for the reindex returned a
noopvalue forctx.op. -
requests_per_secondnumberrequired -
The number of requests per second effectively executed during the reindex.
-
retriesRetriesrequired -
The number of retries attempted by reindex.
bulkis the number of bulk actions retried andsearchis the number of search actions retried. -
throttledstring Duration -
throttled_millisDurationValueUnitMillisrequired -
Number of milliseconds the request slept to conform to
requests_per_second. -
throttled_untilstring Duration -
throttled_until_millisDurationValueUnitMillisrequired -
This field should always be equal to zero in a
_reindexresponse. It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform torequests_per_second. -
totalnumberrequired -
The number of documents that were successfully processed.
-
updatednumberrequired -
The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.
-
version_conflictsnumberrequired -
The number of version conflicts that reindex hits.
-
typestringrequired -
headersHttpHeadersrequired