Github user kxepal commented on the pull request:
https://github.com/apache/couchdb-couch-replicator/pull/37#issuecomment-215263623
```
14> RepCount2 = 300.
300
15> Delays2 = [lists:min([random:uniform(RepCount2 * 2 *
AVG_ERROR_DELAY_MSEC), MAX_ERROR_DELAY_MSEC]) || _ <- lists:seq(0, RepCount2)].
[9485,56602,52750,39220,30653,11672,8528,41518,11949,53177,
23181,14300,32533,40462,39026,13175,39478,11391,5080,26598,
3089,18850,27536,53811,29149,10794,40307,30398,474|...]
17> lists:foldl(fun(I,A) when I =:= MAX_ERROR_DELAY_MSEC -> A + 1; (I, A)
-> A end, 0, Delays2).
1
18> RepCount3 = 500.
500
19> Delays3 = [lists:min([random:uniform(RepCount3 * 2 *
AVG_ERROR_DELAY_MSEC), MAX_ERROR_DELAY_MSEC]) || _ <- lists:seq(0, RepCount3)].
[27337,448,39373,37148,18554,17181,60000,52388,30241,60000,
60000,60000,60000,43381,56073,32443,48254,60000,42480,60000,
60000,27602,24357,4499,4179,15436,60000,60000,10043|...]
20> lists:foldl(fun(I,A) when I =:= MAX_ERROR_DELAY_MSEC -> A + 1; (I, A)
-> A end, 0, Delays3).
200
21> RepCount4 = 400.
400
22> Delays4 = [lists:min([random:uniform(RepCount4 * 2 *
AVG_ERROR_DELAY_MSEC), MAX_ERROR_DELAY_MSEC]) || _ <- lists:seq(0, RepCount4)].
[57108,60000,42816,39892,60000,26370,58639,33867,23407,
60000,60000,27858,57792,60000,4635,32163,49462,60000,2840,
33347,59350,51291,59550,39674,11517,30974,18879,48330,9700|...]
23> lists:foldl(fun(I,A) when I =:= MAX_ERROR_DELAY_MSEC -> A + 1; (I, A)
-> A end, 0, Delays4).
120
```
For 300 replications it's only, one, but after that number grows fast: 400
gets you ~100 and 500 gets you ~200 one-minute-sleepers. So we're returning to
the same problem.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---