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: [email protected]
