Skip to content

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

Open
eubnara wants to merge 1 commit intoapache:branch-2.7from
eubnara:AMBARI-25422-branch-2.7
Open

[AMBARI-25422] the interface to get serviceInfo is too slow#3285
eubnara wants to merge 1 commit intoapache:branch-2.7from
eubnara:AMBARI-25422-branch-2.7

Conversation

@eubnara
Copy link
Copy Markdown
Contributor

@eubnara eubnara commented Feb 15, 2021

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
Copy link
Copy Markdown
Contributor Author

eubnara commented Feb 16, 2021

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

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