[config api-server] allow zk heartbeat. yield in auto generated code

Bug #1460627 reported by Prakash Bailkeri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Undecided
Prakash Bailkeri
Trunk
Fix Committed
High
Prakash Bailkeri

Bug Description

In scaled setup with large VMI, zk connection is lost due to missing heart beat.

In autogenerated vnc code(vnc_api_server_gen.py and vnc_cassandra_client_gen.py), while processing response from cassandra, loops can hog cpu and can cause zk heart beat misses if there are large number of entries.

Add yield to allow zk heart beats

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

Review in progress for https://review.opencontrail.org/11114
Submitter: Prakash Bailkeri (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/11114
Committed: http://github.org/Juniper/contrail-generateDS/commit/ff357e23a47173a7a98e7cbb1433b3d720764fa1
Submitter: Zuul
Branch: R2.20

commit ff357e23a47173a7a98e7cbb1433b3d720764fa1
Author: Prakash Bailkeri <email address hidden>
Date: Mon Jun 1 04:51:12 2015 -0700

Add yield to allow zk heartbeats

In scaled setup with large number of VMIs, api server restarts are seen due to
missing heartbeats. This could happen due to tight loop which processes large
respose from cassandra.

Add yield to auto generated code to allow zk heartbeats

Change-Id: I9f0ba5dce20dedcf9406d7c1443e3248d445a245
Closes-bug: #1460627

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

Review in progress for https://review.opencontrail.org/11166
Submitter: Prakash Bailkeri (<email address hidden>)

Changed in juniperopenstack:
milestone: r2.20-fcs → r2.30-fcs
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/11166
Committed: http://github.org/Juniper/contrail-generateDS/commit/1bdc31bb7f5e096bcf95a5f4f6443c9c24e3f5cd
Submitter: Zuul
Branch: master

commit 1bdc31bb7f5e096bcf95a5f4f6443c9c24e3f5cd
Author: Prakash Bailkeri <email address hidden>
Date: Mon Jun 1 04:51:12 2015 -0700

Add yield to allow zk heartbeats

In scaled setup with large number of VMIs, api server restarts are seen due to
missing heartbeats. This could happen due to tight loop which processes large
respose from cassandra.

Add yield to auto generated code to allow zk heartbeats

Change-Id: I9f0ba5dce20dedcf9406d7c1443e3248d445a245
Closes-bug: #1460627

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.