[ 
https://issues.apache.org/jira/browse/HDDS-7428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kaijie Chen updated HDDS-7428:
------------------------------
    Summary: Calculate number of blocks to allocate on SCM  (was: Pass 
RequestedSize to SCM in AllocateBlock RPC)

> Calculate number of blocks to allocate on SCM
> ---------------------------------------------
>
>                 Key: HDDS-7428
>                 URL: https://issues.apache.org/jira/browse/HDDS-7428
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Kaijie Chen
>            Assignee: Kaijie Chen
>            Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to