mc admin ilm-scanner set-throttle

Set the minimum and maximum wait times between lifecycle scans at the cluster/fabric level. The wait times control how aggressively the scanner operates.

Syntax

You can configure the throttle setting at the cluster level only. You cannot configure the throttle for individual buckets.

mc admin ilm-scanner set-throttle TARGET --min-wait VALUE --max-wait VALUE
NOTE
You must specify the parameters --min-wait and --max-wait together. Values must be positive integers with ms or s suffix.

Parameters

Parameter Description
TARGET The alias of a configured HPE Data Fabric Object Store on which the command creates or updates a policy. This is a mandatory parameter.
--min-wait Minimum wait time between scans. The value must be specified in milliseconds or seconds. (For example, 500ms, 5s). This is a mandatory parameter.
--max-wait Maximum wait time between scans. The value must be specified in milliseconds or seconds. (For example, 500ms, 5s). This is a mandatory parameter.

Example

Set minimum wait time for throttle to 500 milliseconds and maximum wait time to 5 seconds:

Text output

CLI
$ mc admin ilm-scanner set-throttle myminio --min-wait 500ms --max-wait 5s
scanner throttle set - min: 500 milliseconds, max: 5 seconds

JSON output

CLI
$ mc admin ilm-scanner set-throttle --json myminio --min-wait 500ms --max-wait 5s
{
  "op": "throttle",
  "status": "success",
  "minWaitSeconds": 0.5,
  "maxWaitSeconds": 5
}