Tsz-wo Sze created HDDS-15805:
---------------------------------

             Summary: NetworkTopologyImpl.sortByDistanceCost should account for 
racks
                 Key: HDDS-15805
                 URL: https://issues.apache.org/jira/browse/HDDS-15805
             Project: Apache Ozone
          Issue Type: Improvement
          Components: SCM
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


NetworkTopologyImpl.sortByDistanceCost currently sort only by distance.  It 
should also account for racks, i.e. datanodes in the same rack should be next 
to each other.

|| Racks || Client/Datanodes ||
| R1 | Client |
| R2 | Dn1, Dn2 |
| R3 | Dn3 |

In the example above, the current code may return Dn1, Dn3, Dn2.  Then the 
Client may stream Dn1 -> Dn3 -> Dn2 which unnecessarily crossing the racks 
twice.



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