You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by GitBox <gi...@apache.org> on 2021/02/15 04:59:22 UTC

[GitHub] [ambari] eubnara opened a new pull request #3285: [AMBARI-25422] the interface to get serviceInfo is too slow

eubnara opened a new pull request #3285:
URL: https://github.com/apache/ambari/pull/3285


   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   There are unnecessary iteration on [List Services API](https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/services.md).
   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](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [ambari] eubnara commented on pull request #3285: [AMBARI-25422] the interface to get serviceInfo is too slow

Posted by GitBox <gi...@apache.org>.
eubnara commented on pull request #3285:
URL: https://github.com/apache/ambari/pull/3285#issuecomment-779568891


   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 ...<get usetimestamp="true" src="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" dest="/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3285/ambari-metrics/ambari-metrics-timelineservice/target/embedded/hbase.tar.gz"/>... @ 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
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org