[ 
https://issues.apache.org/jira/browse/HDDS-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152700#comment-18152700
 ] 

Aleksei Ieshin edited comment on HDDS-17535 at 11/30/26, 8:43 AM:
------------------------------------------------------------------

 [~deveshsingh]I like the idea of adding {{intendedTier}} however I had a few 
comments 

One correction to the Option 2 table: container selection cannot stay 
"unchanged for normal writes".
{{getContainersForOwnerAndStorageTier}} matches on owner and {{storageTier}} 
only. A HOT fallback container is {{storageTier = DISK, intendedTier = SSD}}, 
so a WARM write asking for DISK will reuse it, and its WARM blocks get promoted 
to SSD with the container.

Proposed rule for every write: match on {{storageTier}} *and* {{intendedTier}} 
(normal writes: intent = own tier; fallback writes: intent = preferred tier), 
create a new container otherwise. Same filter in 
{{WritableECContainerProvider}}, since EC falls back too after #12179.

If {{intendedTier}} is set on every container, promotion is simply "replica 
volume != intendedTier", null means legacy, and it also heals repair fallback 
(HDDS-17536 restoring a HOT replica on DISK). If you keep it optional, promote 
on {{intendedTier != null ? intendedTier : storageTier}}.

*Additions to the doc.*
# When data can move: Options 1 and 2 promote when the container closes (RM 
only handles closed containers), Option 3 when the key commits. Worth a row in 
the comparison table, and a note that under light HOT traffic a fallback 
container can stay open for a while.
# EC is in scope now: PR #12179 routes EC through the same fallback branch, so 
EC fallback containers exist as soon as both land.

*Another question*
Repair (HDDS-17536) picks targets on the container's stored tier, so a fallback 
container's lost replica is restored on DISK and only promotion changes tiers. 
Intended? If repair should prefer {{intendedTier}} when it has room, that is a 
rule for HDDS-17536 / HDDS-17592.

*Two follow-ups to name.*
# Current placement per key: after promotion the OM key location still says 
{{storageTier = DISK, isFallBack = true}}, and SCM cannot update OM. Either 
stop persisting {{storageTier}} at commit, or let Recon (container-to-key 
mapping plus container reports) report current placement. HDDS-17818.
# Operator trigger: {{ozone admin storagepolicy satisfy <bucket|key>}}, the 
{{hdfs mover -p}} equivalent, next to the existing {{check}}. From the ops 
perspective, I guarantee it would be the favourite option by the op teams.


was (Author: JIRAUSER311863):
 [~deveshsingh]I like the idea of adding {{intendedTier}} however I had a few 
comments 

One correction to the Option 2 table: container selection cannot stay 
"unchanged for normal writes".
{{getContainersForOwnerAndStorageTier}} matches on owner and {{storageTier}} 
only. A HOT fallback container is {{storageTier = DISK, intendedTier = SSD}}, 
so a WARM write asking for DISK will reuse it, and its WARM blocks get promoted 
to SSD with the container.

Proposed rule for every write: match on {{storageTier}} *and* {{intendedTier}} 
(normal writes: intent = own tier; fallback writes: intent = preferred tier), 
create a new container otherwise. Same filter in 
{{WritableECContainerProvider}}, since EC falls back too after #12179.

If {{intendedTier}} is set on every container, promotion is simply "replica 
volume != intendedTier", null means legacy, and it also heals repair fallback 
(HDDS-17536 restoring a HOT replica on DISK). If you keep it optional, promote 
on {{intendedTier != null ? intendedTier : storageTier}}.

*Additions to the doc.*
# When data can move: Options 1 and 2 promote when the container closes (RM 
only handles closed containers), Option 3 when the key commits. Worth a row in 
the comparison table, and a note that under light HOT traffic a fallback 
container can stay open for a while.
# EC is in scope now: PR #12179 routes EC through the same fallback branch, so 
EC fallback containers exist as soon as both land.

*Another question*
Repair (HDDS-17536) picks targets on the container's stored tier, so a fallback 
container's lost replica is restored on DISK and only promotion changes tiers. 
Intended? If repair should prefer {{intendedTier}} when it has room, that is a 
rule for HDDS-17536 / HDDS-17592.

> Define strict and fallback storage-tier allocation contract
> -----------------------------------------------------------
>
>                 Key: HDDS-17535
>                 URL: https://issues.apache.org/jira/browse/HDDS-17535
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Filesystem
>            Reporter: Devesh Kumar Singh
>            Assignee: Aleksei Ieshin
>            Priority: Major
>         Attachments: StoragePolicyRepairFallBackDesignContract.md, 
> hdds-17535-contract-reviewd-1.md, hdds-17535-contract-reviewd.md
>
>
> Specify and implement preferred tier, authorized fallback, unavailable-tier 
> errors, selection reporting and interaction with RATIS/EC placement. 
> *Reason:* Even a fully upgraded cluster can be unable to satisfy placement 
> intent; finalization is not capacity validation. 
> *Acceptance criteria:* Strict requests fail when infeasible; fallback uses 
> only permitted tiers; physical choices observable; policy-free behavior 
> unchanged.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to