Devesh Kumar Singh created HDDS-15882:
-----------------------------------------
Summary: Allow per-key storagePolicy override on write
Key: HDDS-15882
URL: https://issues.apache.org/jira/browse/HDDS-15882
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Devesh Kumar Singh
Assignee: Devesh Kumar Singh
Some workloads want to write specific keys to a tier different from the
bucket's default (e.g. a snapshot key inside a HOT bucket that should be stored
on COLD). Add an optional storagePolicy field on KeyArgs
(OmClientProtocol.proto). When set on CreateKey / AllocateBlock, the key
overrides the bucket's policy for its own blocks. When unset, the bucket's
policy applies.
OMAllocateBlockRequest.preExecute computes the effective policy in the order
key > bucket > global default, resolves it to a StorageTier, and forwards that
tier into the SCM AllocateScmBlockRequest.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]