Create cache management rule
Overview
Upon completion of data source creation, to accelerate the access, users can create cache pre-load rules to bind the data source to bucket directories or their subdirectories, caching the data into the instance data source for accelerated access.
When the instance capacity is full, cache data follows the least recently used (LRU) release strategy. To prevent the release of actively accessed cached data during pre-loading, create cache release rules to proactively release cached data from specified directories that no longer require accelerated access, thereby ensuring available instance capacity.
| Rule type | Type overview |
|---|---|
| Cache pre-load | Upon creation of a cache pre-load rule, users can trigger a cache pre-load task to cache data from the bound bucket directory or its subdirectories of the data source into the RapidFS instance |
| Cache release | Upon creation of a cache release rule, it is possible to trigger a cache release task to remove cached data from the bound bucket directory or its subdirectories in the data source |
Note
- Both the instance and data source have been created, and the data source status is running.
- Each data source allows for the creation of up to 20 cache management rules.
Operation steps
Follow the steps below to create a cache management rule in the console.
- Navigate to the Data Sync page
In the left navigation bar of the RapidFS console, select Data Flow to enter the Data Flow List page, then click Cache Management to access the Cache Management Rules page.

- Create cache management rule
Click Create Rule to enter the create Cache Management Rules page

Configure the rule information and click OK
| ConfigMap | Required/Optional | Configuration |
|---|---|---|
| RapidFSh instance | Required | Drop-down options for RapidFS instances already created within the same region |
| Data source | Required | Dropdown options, selected RapidFS instance and created data source |
| Trigger method | Required | Cache pre-load/cache release: Cache pre-load is used to load data under specified directories in the data source in advance, while cache release actively removes cached data from specified directories |
| Path | Optional | The relative path of the data source directory, defaulted as the directory of data source |
- Complete creating cache management rule
After creating a cache management rule, refresh the Data Sync page to check its status.
- During creation, the rule status is Creating.
- Upon successful creation, the rule status is normal.
More operations
Users may also specify a data source to create cache management rules via the following methods:
- In the left navigation bar of the RapidFS console, select Instance, select a specific instance to enter the instance details page, then click Data Flow under Data Source Management to access the Data Flow page.

- In the left navigation bar of the RapidFS console, select Data Source to enter the Data Source List page. Click Data Sync for the specified data source to enter the Data Sync page.

