You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2023/10/05 08:17:00 UTC

[jira] [Updated] (HDDS-9392) Streaming write pipeline should pick the nearest datanode as primary node

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

Ivan Andika updated HDDS-9392:
------------------------------
    Summary: Streaming write pipeline should pick the nearest datanode as primary node  (was: Stream client should pick the nearest datanode as primary node in pipeline mode)

> Streaming write pipeline should pick the nearest datanode as primary node
> -------------------------------------------------------------------------
>
>                 Key: HDDS-9392
>                 URL: https://issues.apache.org/jira/browse/HDDS-9392
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Client
>    Affects Versions: 1.3.0
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Major
>
> In `BlockDataStreamOutput#setupStream`, if pipeline mode is enabled, we pass the Pipeline object to the `RatisHelper#getRoutingTable`.
> In `RatisHelper#getRoutingTable`, we pick the first datanode in the pipeline as the primary, which from my understanding should be the Datanode closest to the client. However, I'm unable to find the logic that sort the datanodes in the pipeline.
> From what I understand, when we open the stream key and request SCM to allocate the block (`OMKeyRequest#allocateBlock`), we need to also pass the clientMachineString so that so that nearest datanodes will be used instead. This should improve the performance of the stream pipeline mode.



--
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