config-perf: improve contrail-api server time to LISTEN

Bug #1435619 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Hampapur Ajay
R2.0
Won't Fix
Undecided
Hampapur Ajay
R2.1
Won't Fix
Undecided
Hampapur Ajay

Bug Description

On a scaled system (with 17K ports and 6K VMs) restarting contrail-api takes ~4 mins. This can be improved by modifying the dbe_resync and walk methods in DB layer.

Hampapur Ajay (hajay)
Changed in juniperopenstack:
assignee: nobody → Hampapur Ajay (hajay)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

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

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

Review in progress for https://review.opencontrail.org/8659
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/8659
Committed: http://github.org/Juniper/contrail-generateDS/commit/958e22fcd3df64d8ad1f4618d7e4c3fb1e148c01
Submitter: Zuul
Branch: master

commit 958e22fcd3df64d8ad1f4618d7e4c3fb1e148c01
Author: Hampapur Ajay <email address hidden>
Date: Thu Mar 26 10:56:49 2015 -0700

config-perf: use accessor method for resource_class

This is a staging commit to use accessor method for resource class.
With this in place next commit in controller repo will start using
underscore version of type similar to how its persisted in db.
(https://review.opencontrail.org/#/c/8559/).

Generate the list of all types also for future use in reducing
amount of autogenerated code.

Change-Id: Id951ef245f795b23204f8aa1d454d2b044254307
Partial-Bug: #1435619

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

Review in progress for https://review.opencontrail.org/8559
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/8559
Committed: http://github.org/Juniper/contrail-controller/commit/8537d5ae0667285a8b641c01b89811da74949f40
Submitter: Zuul
Branch: master

commit 8537d5ae0667285a8b641c01b89811da74949f40
Author: Hampapur Ajay <email address hidden>
Date: Wed Mar 25 17:52:55 2015 -0700

config-perf: improve api-server startup time during db resync.

In cassandra walk(), get_range() was already fetching the row, use it.
In _dbe_resync(), read only the props+refs from object row since only
that is required.
Since persisted type in db is with underscore, account for that and
reduce amount of autogeneration needed.

Change-Id: I8d62c3849ba118f26a17d6ca84ecddcb912595fc
Closes-Bug: #1435619

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.1

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

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

Review in progress for https://review.opencontrail.org/9434
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/9433
Committed: http://github.org/Juniper/contrail-generateDS/commit/b197ea49d8f9d154b510afabc81aa1823796f47d
Submitter: Zuul
Branch: R2.1

commit b197ea49d8f9d154b510afabc81aa1823796f47d
Author: Hampapur Ajay <email address hidden>
Date: Thu Mar 26 10:56:49 2015 -0700

config-perf: use accessor method for resource_class

This is a staging commit to use accessor method for resource class.
With this in place next commit in controller repo will start using
underscore version of type similar to how its persisted in db.
(https://review.opencontrail.org/#/c/8559/).

Generate the list of all types also for future use in reducing
amount of autogenerated code.

Change-Id: Id951ef245f795b23204f8aa1d454d2b044254307
Partial-Bug: #1435619
(cherry picked from commit 958e22fcd3df64d8ad1f4618d7e4c3fb1e148c01)

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

Reviewed: https://review.opencontrail.org/9434
Committed: http://github.org/Juniper/contrail-generateDS/commit/6d0ef7eecd33f6337ae7b2e08e64dec8ac400641
Submitter: Zuul
Branch: R2.0

commit 6d0ef7eecd33f6337ae7b2e08e64dec8ac400641
Author: Hampapur Ajay <email address hidden>
Date: Thu Mar 26 10:56:49 2015 -0700

config-perf: use accessor method for resource_class

This is a staging commit to use accessor method for resource class.
With this in place next commit in controller repo will start using
underscore version of type similar to how its persisted in db.
(https://review.opencontrail.org/#/c/8559/).

Generate the list of all types also for future use in reducing
amount of autogenerated code.

Change-Id: Id951ef245f795b23204f8aa1d454d2b044254307
Partial-Bug: #1435619
(cherry picked from commit 958e22fcd3df64d8ad1f4618d7e4c3fb1e148c01)

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.