analytics: investigate and improve analytics-api performance

Bug #1470207 reported by Raj Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Won't Fix
Medium
Sundaresan Rajangam
R2.20
Won't Fix
Medium
Sundaresan Rajangam
Trunk
Won't Fix
Medium
Sundaresan Rajangam

Bug Description

For 619 VMs, the following is the time taken by contrail-api versus contrail-analytics-api..

root@cs-scale-1:~# curl --user admin:n1keenA -s "http://127.0.0.1:8095/virtual-machines?detail=true" | python -mjson.tool | grep href | wc -l
619

root@cs-scale-1:~# time curl --user admin:password -s "http://127.0.0.1:8095/virtual-machines?detail=true" > abc.config

real 0m0.297s
user 0m0.000s
sys 0m0.010s
root@cs-scale-1:~# time curl -s "http://127.0.0.1:8081/analytics/uves/virtual-machine/*?flat" > abc.analytics

real 0m8.065s
user 0m0.005s
sys 0m0.010s

Raj Reddy (rajreddy)
Changed in juniperopenstack:
assignee: nobody → Anish Mehta (amehta00)
Raj Reddy (rajreddy)
Changed in juniperopenstack:
importance: Undecided → Medium
assignee: Anish Mehta (amehta00) → Sundaresan Rajangam (srajanga)
information type: Proprietary → Public
Revision history for this message
Raj Reddy (rajreddy) wrote :

Anish is looking at using the memory cache to serve UVEs, so closing this PR..

Raj Reddy (rajreddy)
Changed in juniperopenstack:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.