Comment 14 for bug 1459769

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

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

commit 6776108e8151835807a1b566b39c4df3bc51af91
Author: Sundaresan Rajangam <email address hidden>
Date: Tue Jun 9 11:58:00 2015 -0700

Handle delrequest.lua and uve async request failure in redis

contrail-collector executes delrequest.lua script when a Generator
gets disconnected. On a scale setup, some Generators (vrouter-agent,
tor-agent) originate more UVEs and therefore delrequest.lua takes more
than 5 seconds [default lua-time-limit] to complete. If the lua script
runs for more than the configured time limit, then redis returns error
to other requests till the script is completed.

- Removed the chatty log from delrequest.lua as it affects the
performance. sub_del() should be called only for UVEs with
aggtype="stats" fields.
- Added assert if redis returns error for delrequest.lua and async
uveupdate and uvedelete requests.

Change-Id: I797a552ebae11adea49c3b58c9775c0014bd6731
Partial-Bug: #1459769