Skip to content

Commit 76db0b5

Browse files
committed
Make rabbit_fifo_dlx_sup more resilient
Previously, it used the default intensity: "intensity defaults to 1 and period defaults to 5." However, it's a bit low given there can be dozens or hundreds of DLX workers: If only 2 fail within 5 seconds, the whole supervisor terminates. Even with the new values, there shouldn't be any infnite loop of the supervisor terminating and restarting childs because the rabbit_fifo_dlx_worker is terminated and started very quickly given that the (the slow) consumer registration happens in rabbit_fifo_dlx_worker:handle_continue/2.
1 parent e3cf90a commit 76db0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_fifo_dlx_sup.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ start_link() ->
2424

2525
init([]) ->
2626
SupFlags = #{strategy => simple_one_for_one,
27-
intensity => 1,
28-
period => 5},
27+
intensity => 100,
28+
period => 1},
2929
Worker = rabbit_fifo_dlx_worker,
3030
ChildSpec = #{id => Worker,
3131
start => {Worker, start_link, []},

0 commit comments

Comments
 (0)