incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-3015) Ambari API latency increases linearly to load
Date Fri, 23 Aug 2013 18:21:52 GMT
Srimanth Gunturi created AMBARI-3015:
----------------------------------------

             Summary: Ambari API latency increases linearly to load
                 Key: AMBARI-3015
                 URL: https://issues.apache.org/jira/browse/AMBARI-3015
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 1.4.0
            Reporter: Srimanth Gunturi
            Assignee: Mahadev konar
             Fix For: 1.4.0
         Attachments: 1Thread.png, 2Threads.png, 3Threads.png

Setup: In a thread I am calling Ambari UI's 5 most used APIs. They are:
{noformat}
/api/v1/clusters/${cluster}/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/disk_info,Hosts/cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components,metrics/disk,metrics/load/load_one
{noformat}
{noformat}
/api/v1/clusters/${cluster}/services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles,components/host_components/metrics/jvm/memHeapUsedM,components/host_components/metrics/jvm/memHeapCommittedM,components/host_components/metrics/mapred/jobtracker/trackers_decommissioned,components/host_components/metrics/cpu/cpu_wio,components/host_components/metrics/rpc/RpcQueueTime_avg_time,components/host_components/metrics/flume/flume,components/host_components/metrics/yarn/Queue
{noformat}
{noformat}
/api/v1/clusters/vm/requests?to=end&page_size=10&fields=*,tasks/Tasks/*
{noformat}
{noformat}
/api/v1/clusters/vm/host_components?fields=HostRoles/nagios_alerts&HostRoles/component_name=NAGIOS_SERVER
{noformat}
{noformat}
/api/v1/clusters/vm/services?fields=ServiceInfo,components/host_components/HostRoles/desired_state,components/host_components/HostRoles/state
{noformat}
The above I call one after the other and loop 100 times.

When I run 2 threads in parallel, it takes twice as long as 1 thread. 
When I run 3 threads in parallel, it takes thrice as long as 1 thread.
It looks like each sessions requests are done one after the other in serial.

Images attached. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message