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 09:25:00 UTC

[jira] [Updated] (HDDS-7428) Calculate number of blocks to allocate on SCM

     [ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org