ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sid Wagle" <swa...@hortonworks.com>
Subject Review Request 18981: API call to get host status takes 30 seconds
Date Mon, 10 Mar 2014 20:54:47 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18981/
-----------------------------------------------------------

Review request for Ambari, Sumit Mohanty and Tom Beerbower.


Bugs: AMBARI-5005
    https://issues.apache.org/jira/browse/AMBARI-5005


Repository: ambari


Description
-------

[root@perf800-large1 ~]# time curl -u admin:admin 'http://<server-ip>:8080/api/v1/clusters/c1/hosts?fields=Hosts/host_status,Hosts/maintenance_state,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,alerts/summary&minimal_response=true&_=1393982657484'
> /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  739k    0  739k    0     0  40120      0 --:--:--  0:00:18 --:--:--  191k

real	0m18.878s
user	0m0.020s
sys	0m0.000s


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java b0258a4

  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
69b58f7 
  ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java
2b30b9f 
  ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentImpl.java 9226cf1

  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java 24e5b1a

  ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java d151e8b 
  ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerImplTest.java
c99bfa1 
  ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
3c1632c 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
2cc1165 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostResourceProviderTest.java
049af58 

Diff: https://reviews.apache.org/r/18981/diff/


Testing
-------

Results :

Tests run: 1480, Failures: 0, Errors: 0, Skipped: 9


Thanks,

Sid Wagle


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message