Replace slowdown option with *_per_second option

container and object updaters sleeps "slowdown" (default 0.01) seconds
after every processed container/object. Because time.sleep call adds overhead,
use ratelimit_sleep from common.utils instead. Same as in auditor.

Change-Id: I362aa0f13c78ad03ce1f76ee0257b0646f981212
This commit is contained in:
Ondřej Nový
2017-03-21 20:10:12 +01:00
committed by Tim Burke
parent 55075ea8be
commit a8bc94c7e3
9 changed files with 152 additions and 15 deletions

View File

@@ -185,7 +185,11 @@ use = egg:swift#recon
# node_timeout = 3
# conn_timeout = 0.5
#
# slowdown will sleep that amount between containers
# Send at most this many container updates per second
# containers_per_second = 50
#
# slowdown will sleep that amount between containers. Deprecated; use
# containers_per_second instead.
# slowdown = 0.01
#
# Seconds to suppress updating an account that has generated an error