Github user kxepal commented on the pull request: https://github.com/apache/couchdb-couch-replicator/pull/37#issuecomment-215262746 ``` 8> AVG_ERROR_DELAY_MSEC = 100. 100 9> RepCount = 1000. 1000 10> MAX_ERROR_DELAY_MSEC = 60000. 60000 11> Delays = [lists:min([random:uniform(RepCount * 2 * AVG_ERROR_DELAY_MSEC), MAX_ERROR_DELAY_MSEC]) || _ <- lists:seq(0, RepCount)]. [60000,60000,553,60000,60000,26538,60000,60000,60000,60000, 60000,60000,60000,60000,60000,60000,54556,25234,60000,60000, 60000,60000,50489,60000,60000,60000,60000,47442,60000|...] 12> lists:foldl(fun(I,A) when I =:= MAX_ERROR_DELAY_MSEC -> A + 1; (I, A) -> A end, 0, Delays). 707 ``` So, for 1000 replications we'll have at least ~700 which sleeps for one minute.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---