-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/75014/
-----------------------------------------------------------
(Updated Jan. 15, 2025, 6:52 a.m.)
Review request for atlas, Mandar Ambawane and Pinal Shah.
Bugs: ATLAS-4867
https://issues.apache.org/jira/browse/ATLAS-4867
Repository: atlas
Description
-------
Metrics API : http://<>/api/atlas/admin/metrics
1. There is some information in the Metrics API response, which is not been
used like Count of the typeAndSubTypes, Active, deleted, Shell
Approach:
Identify time taken by the above counts
Take reading of metric api
Take reading of metric api without the above counts
Diffs
-----
repository/src/main/java/org/apache/atlas/services/MetricsService.java
9ec2cd2cb
Diff: https://reviews.apache.org/r/75014/diff/3/
Testing (updated)
-------
With typeAndSubTypes data it took 4578ms for Active (22,994,801), Deleted
(139,398) and Shell (166,280) for Metric API
First Time -> Without typeAndSubTypes data, it took 29279ms for Metric API
Then two subsequent request took around 2389ms and 2234ms for metric API.
PC build:-
https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1715/
Thanks,
Paresh Devalia