[
https://issues.apache.org/jira/browse/HDDS-7428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kaijie Chen updated HDDS-7428:
------------------------------
Description:
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.
SCM will calculate how many blocks to allocate based on {{requestedSize}}, and
return size of each block allocated to client.
was:
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}}.
> 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
> Labels: pull-request-available
>
> 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.
> SCM will calculate how many blocks to allocate based on {{requestedSize}},
> and return size of each block allocated to client.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]