You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/12/14 11:01:00 UTC

[jira] [Updated] (AMBARI-25811) Optimize ambari metrics build time

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

ASF GitHub Bot updated AMBARI-25811:
------------------------------------
    Labels: pull-request-available  (was: )

> Optimize ambari metrics build time
> ----------------------------------
>
>                 Key: AMBARI-25811
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25811
>             Project: Ambari
>          Issue Type: Improvement
>          Components: metrics
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> Currently in ambari metrics build, most of the time is taken by ambari-metrics-assembly.
> Looks maven-assembly-plugin is taking lot of time in stitching the artifacts.
> Upgrading maven-assembly-plugin from 2.2-beta-5 to 3.4.2(latest version) reduces the build time significantly
> *Before change:*
> {noformat}
> 15:58:46,215 [INFO] Reactor Summary for ambari-metrics 2.0.0.0-SNAPSHOT:
> 15:58:46,215 [INFO] 
> 15:58:46,218 [INFO] ambari-metrics ..................................... SUCCESS [  3.960 s]
> 15:58:46,220 [INFO] Ambari Metrics Common .............................. SUCCESS [ 11.492 s]
> 15:58:46,220 [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [  7.655 s]
> 15:58:46,220 [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [  4.045 s]
> 15:58:46,220 [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [  3.465 s]
> 15:58:46,220 [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [  2.887 s]
> 15:58:46,220 [INFO] Ambari Metrics Collector ........................... SUCCESS [ 19.416 s]
> 15:58:46,220 [INFO] Ambari Metrics Monitor ............................. SUCCESS [  4.791 s]
> 15:58:46,220 [INFO] Ambari Metrics Grafana ............................. SUCCESS [  2.838 s]
> 15:58:46,220 [INFO] Ambari Metrics Host Aggregator ..................... SUCCESS [  8.363 s]
> 15:58:46,220 [INFO] Ambari Metrics Assembly ............................ SUCCESS [09:09 min]
> 15:58:46,220 [INFO] ------------------------------------------------------------------------
> 15:58:46,220 [INFO] BUILD SUCCESS
> 15:58:46,220 [INFO] ------------------------------------------------------------------------
> 15:58:46,221 [INFO] Total time:  10:18 min
> 15:58:46,221 [INFO] Finished at: 2022-12-14T15:58:46+05:30
> {noformat}
> *After Change:*
> {noformat}
> 16:18:22,667 [INFO] Reactor Summary for ambari-metrics 2.0.0.0-SNAPSHOT:
> 16:18:22,667 [INFO] 
> 16:18:22,670 [INFO] ambari-metrics ..................................... SUCCESS [  3.897 s]
> 16:18:22,671 [INFO] Ambari Metrics Common .............................. SUCCESS [ 10.880 s]
> 16:18:22,671 [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [  4.681 s]
> 16:18:22,671 [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [  2.184 s]
> 16:18:22,671 [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [  2.949 s]
> 16:18:22,671 [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [  3.071 s]
> 16:18:22,671 [INFO] Ambari Metrics Collector ........................... SUCCESS [ 18.471 s]
> 16:18:22,671 [INFO] Ambari Metrics Monitor ............................. SUCCESS [  5.416 s]
> 16:18:22,671 [INFO] Ambari Metrics Grafana ............................. SUCCESS [  2.458 s]
> 16:18:22,671 [INFO] Ambari Metrics Host Aggregator ..................... SUCCESS [  8.963 s]
> 16:18:22,671 [INFO] Ambari Metrics Assembly ............................ SUCCESS [ 57.413 s]
> 16:18:22,671 [INFO] ------------------------------------------------------------------------
> 16:18:22,671 [INFO] BUILD SUCCESS
> 16:18:22,671 [INFO] ------------------------------------------------------------------------
> 16:18:22,671 [INFO] Total time:  02:00 min
> 16:18:22,673 [INFO] Finished at: 2022-12-14T16:18:22+05:30
> {noformat}
> *As shown above, in my build environment, build time is reduced from 10 minute to 2 minute.*



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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