[
https://issues.apache.org/jira/browse/HDDS-15872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Devesh Kumar Singh updated HDDS-15872:
--------------------------------------
Description:
Adds storagePolicy and allowFallbackStoragePolicy as new optional fields on
Ozone buckets, alongside the existing storageType. This enables a bucket to
declare which OzoneStoragePolicy (HOT/WARM/COLD) its blocks should use, and
whether block allocation is allowed to fall back to the policy's secondary tier
when the primary tier has no capacity.
The existing per-bucket StorageType attribute is a coarse-grained concept.
StoragePolicy provides a richer model: it bundles a creation tier (e.g. SSD for
HOT) with a fallback tier (e.g. DISK), allowing intelligent data placement and
graceful degradation when a preferred storage tier is full. This change lays
the data-model foundation for subsequent patches that thread StoragePolicy
through
key creation and block allocation.
was:
Introduce a new optional storagePolicy field on OmBucketInfo and its BucketInfo
protobuf representation. Values come from OzoneStoragePolicy (HOT, WARM, COLD).
When set, this new field is the effective storage policy for the bucket. When
unset, the existing deprecated BucketInfo.storageType field remains the source
of truth for backward-compat, matching Ozone's convention of keeping old
deprecated fields intact until an explicit removal migration.
The field must be gated by the STORAGE_POLICY OM layout feature so a
pre-upgrade OM cannot see or emit the field.
{code:java}
ozone sh bucket info
{code}
output must show both the new storagePolicy (when set) and the old storageType,
with storagePolicy labeled as authoritative and storageType labeled (legacy)
when both are set.
> Ozone Bucket Support StoragePolicy and allowFallbackStoragePolicy
> -----------------------------------------------------------------
>
> Key: HDDS-15872
> URL: https://issues.apache.org/jira/browse/HDDS-15872
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Devesh Kumar Singh
> Assignee: Devesh Kumar Singh
> Priority: Major
>
> Adds storagePolicy and allowFallbackStoragePolicy as new optional fields on
> Ozone buckets, alongside the existing storageType. This enables a bucket to
> declare which OzoneStoragePolicy (HOT/WARM/COLD) its blocks should use, and
> whether block allocation is allowed to fall back to the policy's secondary
> tier when the primary tier has no capacity.
>
>
>
>
>
> The existing per-bucket StorageType attribute is a coarse-grained concept.
> StoragePolicy provides a richer model: it bundles a creation tier (e.g. SSD
> for HOT) with a fallback tier (e.g. DISK), allowing intelligent data
> placement and graceful degradation when a preferred storage tier is full.
> This change lays the data-model foundation for subsequent patches that thread
> StoragePolicy through
> key creation and block allocation.
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]