Skip to content

Conversation

@tanvipenumudy
Copy link
Contributor

@tanvipenumudy tanvipenumudy commented Mar 4, 2024

What changes were proposed in this pull request?

To be merged once #5391 is in.

The patch implements granular metrics around KeyManagerImpl#sortDatanodes method. The following metrics have been introduced:

  • sortDatanodesLatencyNs: KeyManagerImpl#sortDatanodes call latency in nanoseconds.
  • sortDatanodesSortByDistanceCostLatencyNs: NetworkTopology#sortByDistanceCost call latency in sortDatanodes.
  • sortDatanodesResolveNodeLocationLatencyNs: KeyManagerImpl#resolveNodeLocation call latency in sortDatanodes (for non-datanode host reads).
  • numSortDatanodesCalls: Number of KeyManagerImpl#sortDatanodes calls.
  • numSortDatanodesNonDatanodeHostReads: Number of non-datanode host reads in sortDatanodes (number of KeyManagerImpl#getOtherNode calls).

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10357

How was this patch tested?

@tanvipenumudy
Copy link
Contributor Author

@kerneltime, @muskan1012 could you please take a look at the patch? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant