Explains how to create a schedule for automatic offloading of data, using the Control System, the CLI and the REST API.
You can create a schedule using the Control System, the CLI, and REST API. After
creating a schedule, you can associate it with the tiering-enabled volume when you
create or modify the volume. If a schedule for offloading data is associated with
the volume, data is offloaded automatically as scheduled based on the rules
associated with the volume for offloading data. You can also manually trigger the
maprcli command to offload data.
The following schedules are available out-of-the-box for offloading data:
| Schedule Name | Schedule ID |
|---|---|
| Critical data | 1 |
| Important data | 2 |
| Normal data | 3 |
| Automatic Tiering Scheduler | 4* |
* The Automatic Tiering Scheduler ID might be different on different
clusters. To retrieve the correct ID, run the schedule list command.
For volumes enabled for warm tiering, the Automatic Tiering Scheduler is used by default for offloading data if you do not explicitly assign a schedule. The frequency of the Automatic Tiering Scheduler run is based on two the following:
cldb.auto.offload.frequency.minutes
property stores the default value of 24 * 60 minutes. This can be configured
using the config save
command. The value for this property must be in minutes.cldb.auto.offload.threshold.gb property stores the
global value for the size threshold. The default value for this property is
1024GB, which cannot be modified. However, you can override the global value
at the volume-level using the autooffloadthresholdgb
parameter with the Creating a Volume and volume modify
commands.The Automatic Tiering Scheduler run is based on the time setting. However, it runs sooner if the size of the volume in the hot tier reaches or exceeds the size threshold.
For volumes enabled for cold tiering, you must assign a schedule to automatically offload data; if you do not assign a schedule, data is not offloaded automatically and you must manually run the offload command to offload data. You can associate the Automatic Tiering Scheduler with the cold-tier enabled volume or create a custom schedule and associate it with the volume to automatically offload data.
To associate an offload schedule with the volume, see Creating a Schedule or Selecting an Existing Schedule to Associate with a Volume.
offloadschedule parameter with the volume create or volume modify command. maprcli volume create -name <volName> -path <mountPath> -tieringenable true -tiername <tierName> -offloadschedule <scheduleID> -json
For the list of all other required and optional parameters, see
volume create.maprcli volume modify -name <volName> -offloadschedule <scheduleID> -json
For the list of all other required and optional parameters, see
volume modify.curl -k -X POST 'https://<host>:8443/rest/volume/create?name=<volName>&path=<mountPath>&tieringenable=true&tiername=<tierName>&offloadschedule=<scheduleID>' --user mapr:mapr
For the list of all other required and optional parameters, see
volume create.curl -k -X POST 'https://<host>:8443/rest/volume/modify?name=<volName>&offloadschedule=<scheduleID>' --user mapr:mapr
For the list of all other required and optional parameters, see
volume modify.offloadschedule parameter to 0.