config-perf: Decrease api-server startup time by reduced cassandra round-trips

Bug #1451893 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Undecided
Hampapur Ajay
Trunk
Fix Committed
Undecided
Hampapur Ajay

Bug Description

On contrail-api startup, there is a walk conducted on OBJ_UUID_TABLE in cassandra DB and the contents transformed + populated to ifmap-server.

In large scaled systems this walk is inefficient as there is a round-trip to cassandra to read each object. Optimize this by reading collection of objects based on type from cassandra.

Hampapur Ajay (hajay)
summary: - config-perf: Increase api-server startup time by reduced cassandra
+ config-perf: Decrease api-server startup time by reduced cassandra
round-trips
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/9937
Submitter: Hampapur Ajay (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.20

Review in progress for https://review.opencontrail.org/10035
Submitter: Hampapur Ajay (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/10035
Committed: http://github.org/Juniper/contrail-controller/commit/eeb1d3bb32fae6e8b029bc314ec48d894fb8472d
Submitter: Zuul
Branch: R2.20

commit eeb1d3bb32fae6e8b029bc314ec48d894fb8472d
Author: Hampapur Ajay <email address hidden>
Date: Tue May 5 09:14:39 2015 -0700

config-perf: improve startup time by fetching object collections.

Instead of fetching objects one at a time from DB, fetch them
type at a time. Reducing the round-trips to cassandra improves
the startup significantly.

Change-Id: I1a6db20c4facf4cf3ba63a0c8ba4623b12eccffe
Closes-Bug: #1451893

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/9937
Committed: http://github.org/Juniper/contrail-controller/commit/8734463dc54bbb1c31b60d811db56d6df7d6df86
Submitter: Zuul
Branch: master

commit 8734463dc54bbb1c31b60d811db56d6df7d6df86
Author: Hampapur Ajay <email address hidden>
Date: Tue May 5 09:14:39 2015 -0700

config-perf: improve startup time by fetching object collections.

Instead of fetching objects one at a time from DB, fetch them
type at a time. Reducing the round-trips to cassandra improves
the startup significantly.

Change-Id: I1a6db20c4facf4cf3ba63a0c8ba4623b12eccffe
Closes-Bug: #1451893

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.