You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ethan Rose (Jira)" <ji...@apache.org> on 2021/10/20 20:34:11 UTC

[jira] [Updated] (HDDS-58) Optimize number of allocated block rpc by aggregating multiple block allocation requests

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

Ethan Rose updated HDDS-58:
---------------------------
    Target Version/s: 1.3.0  (was: 1.2.0)

I am managing the 1.2.0 release and we currently have more than 600 issues targeted for 1.2.0. I am moving the target field to 1.3.0.

If you are actively working on this jira and believe this should be targeted for the 1.2.0 release, Please reach out to me via Apache email or Slack.

> Optimize number of allocated block rpc by aggregating multiple block allocation requests
> ----------------------------------------------------------------------------------------
>
>                 Key: HDDS-58
>                 URL: https://issues.apache.org/jira/browse/HDDS-58
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Manager
>    Affects Versions: 0.2.1
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>         Attachments: HDFS-12838-HDFS-7240.001.patch, HDFS-12838-HDFS-7240.002.patch, HDFS-12838-HDFS-7240.003.patch, HDFS-12838-HDFS-7240.004.patch, HDFS-12838-HDFS-7240.005.patch, HDFS-12838-HDFS-7240.006.patch
>
>
> Currently KeySpaceManager allocates multiple blocks by sending multiple block allocation requests over the RPC. This can be optimized to aggregate multiple block allocation request over one rpc.
> {code}
>       while (requestedSize > 0) {
>         long allocateSize = Math.min(scmBlockSize, requestedSize);
>         AllocatedBlock allocatedBlock =
>             scmBlockClient.allocateBlock(allocateSize, type, factor);
>         KsmKeyLocationInfo subKeyInfo = new KsmKeyLocationInfo.Builder()
>             .setContainerName(allocatedBlock.getPipeline().getContainerName())
>             .setBlockID(allocatedBlock.getKey())
>             .setShouldCreateContainer(allocatedBlock.getCreateContainer())
>             .setIndex(idx++)
>             .setLength(allocateSize)
>             .setOffset(0)
>             .build();
>         locations.add(subKeyInfo);
>         requestedSize -= allocateSize;
>       }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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