Skip to content

Commit

Permalink
Increase the lua-time-limit to 15sec from 5sec
Browse files Browse the repository at this point in the history
contrail-collector executes delrequest.lua script when a Generator
gets disconnected. On a scale setup, some Generators (vrouter-agent,
tor-agent) originates more UVEs. Therefore, in some cases,
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.

This patch increases the lua-time-limit to 15000 milliseconds
in the redis config file.

Change-Id: Idbba259b115015bc86a87b8851ca9271ac4e312c
Partial-Bug: #1459769
  • Loading branch information
Sundaresan Rajangam committed Jun 9, 2015
1 parent e9db8b0 commit b981f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabfile/tasks/provision.py
Expand Up @@ -1129,7 +1129,9 @@ def setup_redis_server_node(*args):

sudo("service %s stop" % (redis_svc_name))
sudo("sed -i -e '/^[ ]*bind/s/^/#/' %s" % (redis_conf_file))
# If redis passwd sepcified add that to the conf file
# Set the lua-time-limit to 15000 milliseconds
sudo("sed -i -e 's/lua-time-limit.*/lua-time-limit 15000/' %s" % (redis_conf_file))
# If redis passwd specified, add that to the conf file
if get_redis_password():
sudo("sed -i '/^# requirepass/ c\ requirepass %s' %s" % (get_redis_password(), redis_conf_file))
# Disable persistence
Expand Down

0 comments on commit b981f0d

Please sign in to comment.