You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Kaijie Chen (Jira)" <ji...@apache.org> on 2022/10/27 06:35:00 UTC

[jira] [Created] (HDDS-7428) Pass RequestedSize to SCM in AllocateBlock RPC

Kaijie Chen created HDDS-7428:
---------------------------------

             Summary: Pass RequestedSize to SCM in AllocateBlock RPC
                 Key: HDDS-7428
                 URL: https://issues.apache.org/jira/browse/HDDS-7428
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Kaijie Chen
            Assignee: Kaijie Chen


Currently, AllocateBlock takes two major arguments: size and num. There are some problems in the current API:

# For EC replication type, the allocated size for clients to write is {{size * ec.numData * num}}, which is not a good abstraction from the HDDS client's view.
# It assumes all blocks are in same size. However, sometimes it's useful to let SCM allocate arbitrary size the client wants (e.g. when client know the key size in advance). 

In this Jira, I wish to add a {{RequestedSize}} field in the AllocateBlock RPC.
When it's not set (equals to 0), SCM will use the legacy {{size}} and {{num}}.
When it's set, SCM will calculate how many blocks to allocate based on {{RequestedSize}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org