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.
Reviewed: https:/ /review. opencontrail. org/11429 github. org/Juniper/ contrail- controller/ commit/ 6776108e8151835 807a1b566b39c4d f3bc51af91
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 6776108e8151835 807a1b566b39c4d f3bc51af91
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: I797a552ebae11a dea49c3b58c9775 c0014bd6731
Partial-Bug: #1459769