Skip to content

Commit c40c262

Browse files
committed
Add a specific shutdown timeout macro and property for message stores
The default timeout of 30 seconds was not sufficient to allow graceful shutdown of a message store with millions of persistent messages. Rather than increase the timeout in general, introduce a new macro with a default of 600 seconds
1 parent 1455eff commit c40c262

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbit_common/include/rabbit.hrl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@
210210
rabbit_misc:get_env(rabbit, supervisor_shutdown_timeout, infinity)).
211211
-define(WORKER_WAIT,
212212
rabbit_misc:get_env(rabbit, worker_shutdown_timeout, 30000)).
213+
-define(MSG_STORE_WORKER_WAIT,
214+
rabbit_misc:get_env(rabbit, message_store_shutdown_timeout, 600000)).
213215

214216
-define(HIBERNATE_AFTER_MIN, 1000).
215217
-define(DESIRED_HIBERNATE, 10000).

0 commit comments

Comments
 (0)