ambari icon indicating copy to clipboard operation
ambari copied to clipboard

[AMBARI-25422] the interface to get serviceInfo is too slow

Open eubnara opened this issue 4 years ago • 1 comments

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

There are unnecessary iteration on List Services API. There is no need to iterate all hosts to get effective config properties.

As Ambari cluster grows with mant hosts, Ambari UI first load is getting slower. (As mentioned in https://issues.apache.org/jira/browse/AMBARI-25422 caused by api call : http://{ip}:{port}/api/v1/clusters/{cluster}/services?fields=ServiceInfo/state,ServiceInfo/maintenance_state,ServiceInfo/desired_repository_version_id,components/ServiceComponentInfo/component_name&minimal_response=true&_=1572316944944)

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests) I tested it with test ambari cluster in our company.

Please review Ambari Contributing Guide before opening a pull request.

eubnara avatar Feb 15 '21 04:02 eubnara

build failure is caused by broken link to ambari metrics package.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project ambari-metrics-timelineservice: An Ant BuildException has occured: Can't get https://private-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.4.1-1/tars/hbase/hbase-2.0.2.3.1.4.1-1-bin.tar.gz to /home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3285/ambari-metrics/ambari-metrics-timelineservice/target/embedded/hbase.tar.gz

[ERROR] around Ant part ...... @ 5:304 in /home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3285/ambari-metrics/ambari-metrics-timelineservice/target/antrun/build-Download HBase.xml

eubnara avatar Feb 16 '21 04:02 eubnara