JindoFS in block storage mode lets you control where data is stored and whether it is compressed, at the directory level. Two policy types are available: storage policies and compression policies. Policies apply only to newly written files — existing files in the directory are not affected.
Storage policies
JindoFS provides five storage policies to cover a range of hot-to-cold data scenarios.
| Policy | Where data is stored | Cache behavior | Best for |
|---|
| HOT | OSS + local | Local copy is locked and never evicted | Hottest data requiring the fastest read access |
| WARM | OSS + local | Local copy is evicted when cache is cleared | Frequently accessed data that benefits from local acceleration (default) |
| COLD | OSS (Standard) | No local copy | Data that is rarely accessed but must remain available |
| IA | OSS (Infrequent Access (IA)) | No local copy | Data accessed infrequently |
| AR | OSS (Archive) | No local copy | Data that is no longer active and needs long-term archival |
WARM is the default storage policy. HOT provides better read acceleration than WARM because its local copy is never automatically evicted.
For details on OSS storage classes, see Overview.
Set a storage policy
jindo jfs -setStoragePolicy [-R] <StoragePolicy>(AR/IA/COLD/WARM/HOT) <path> ...
| Parameter | Description |
|---|
-R | (Optional) Apply the policy recursively to all subdirectories under <path> |
<StoragePolicy> | The policy to apply: AR, IA, COLD, WARM, or HOT |
<path> | The directory to configure |
Get the storage policy for a directory
jindo jfs -getStoragePolicy <path>
| Parameter | Description |
|---|
<path> | The directory whose storage policy you want to check |
Compression policies
JindoFS can compress data blocks before storing them, reducing storage space and improving data read and write efficiency. Compression is most effective for file types with a high compression ratio.
| Policy | Description |
|---|
| NONE | No compression (default) |
| ZSTD | Compresses data blocks using the Zstandard algorithm |
Set a compression policy
jindo jfs -setCompressionPolicy [-R] <CompressionPolicy>(NONE/ZSTD) <path> ...
| Parameter | Description |
|---|
-R | (Optional) Apply the policy recursively to all subdirectories under <path> |
<CompressionPolicy> | The policy to apply: NONE or ZSTD |
<path> | The directory to configure |
Get the compression policy for a directory
jindo jfs -getCompressionPolicy <path> ...
| Parameter | Description |
|---|
<path> | The directory whose compression policy you want to check |