You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/07/31 23:24:52 UTC

[04/50] folsom commit: updated refs/heads/import-master to 4824aec

Let the slide server crash and stay crashed after multiple errors

The restart strategy on the slide server was such that it would
_never_ stop in the case that the ets table it was trimming went away.
Instead it would metronimically add a crash message to your log
every 30 seconds. This commit sets the restart strategy to 3
failures in 3 minutes. Since the only seen live examples of
a slide server crash have been when the ets table has gone
away, it is best crash and stay dead than be restarted after
3 failed trims.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-folsom/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-folsom/commit/a82f2aa6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-folsom/tree/a82f2aa6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-folsom/diff/a82f2aa6

Branch: refs/heads/import-master
Commit: a82f2aa6465575ad8dd651c6c6dd0cdecb1490aa
Parents: c7b450f
Author: Russell Brown <ru...@mac.com>
Authored: Tue Mar 19 15:55:58 2013 +0000
Committer: Russell Brown <ru...@mac.com>
Committed: Tue Mar 19 15:55:58 2013 +0000

----------------------------------------------------------------------
 src/folsom_sample_slide_sup.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-folsom/blob/a82f2aa6/src/folsom_sample_slide_sup.erl
----------------------------------------------------------------------
diff --git a/src/folsom_sample_slide_sup.erl b/src/folsom_sample_slide_sup.erl
index c8929d1..670352b 100644
--- a/src/folsom_sample_slide_sup.erl
+++ b/src/folsom_sample_slide_sup.erl
@@ -44,7 +44,7 @@ start_slide_server(SampleMod, Reservoir, Window) ->
 
 %% @private
 init ([]) ->
-    {ok,{{simple_one_for_one,10,10},
+    {ok,{{simple_one_for_one, 3, 180},
          [
           {undefined, {folsom_sample_slide_server, start_link, []},
            transient, brutal_kill, worker, [folsom_sample_slide_server]}