Reduce likelihood of a bad replication job taking down the job supervisor While we can't disable max_restart_intensity, we can make it unlikely to happen. Ordinarily, we would want this behaviour, but replication jobs involve human input. A bad password, or malformed url, etc, can cause repeated and fast crashing.
For now, we require ten crashes within one second before we would bounce the job supervisor. In future, we should manage replication jobs with greater care. COUCHDB-2975 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/4cb51765 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/4cb51765 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/4cb51765 Branch: refs/heads/master Commit: 4cb517659c235c06a39ee7eb6b4150cdfded6116 Parents: eb93044 Author: Robert Newson <rnew...@apache.org> Authored: Thu Mar 24 13:40:14 2016 +0000 Committer: Robert Newson <rnew...@apache.org> Committed: Thu Mar 24 13:40:14 2016 +0000 ---------------------------------------------------------------------- src/couch_replicator_job_sup.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/4cb51765/src/couch_replicator_job_sup.erl ---------------------------------------------------------------------- diff --git a/src/couch_replicator_job_sup.erl b/src/couch_replicator_job_sup.erl index 3cce46c..ef6ffe8 100644 --- a/src/couch_replicator_job_sup.erl +++ b/src/couch_replicator_job_sup.erl @@ -22,7 +22,7 @@ start_link() -> %%============================================================================= init([]) -> - {ok, {{one_for_one, 3, 10}, []}}. + {ok, {{one_for_one, 10, 1}, []}}. %%============================================================================= %% internal functions