Commit d14154c0 authored by Dominik Charousset's avatar Dominik Charousset

Add new config parameter for connection timeouts

In order to remove frozen BASP nodes in a timely manner, users need to
be able to provide a timeout on the messaging level. Ideally, this
timeout is a multiple of the heartbeat interval.

(cherry picked from commit 3ca105e2)
parent 212a9e77
...@@ -184,6 +184,9 @@ void middleman::add_module_options(actor_system_config& cfg) { ...@@ -184,6 +184,9 @@ void middleman::add_module_options(actor_system_config& cfg) {
.add<size_t>("max-consecutive-reads", .add<size_t>("max-consecutive-reads",
"max. number of consecutive reads per broker") "max. number of consecutive reads per broker")
.add<timespan>("heartbeat-interval", "interval of heartbeat messages") .add<timespan>("heartbeat-interval", "interval of heartbeat messages")
.add<timespan>("connection-timeout",
"max. time between messages before declaring a node dead "
"(ignored if heartbeats are disabled)")
.add<bool>("attach-utility-actors", .add<bool>("attach-utility-actors",
"schedule utility actors instead of dedicating threads") "schedule utility actors instead of dedicating threads")
.add<bool>("manual-multiplexing", .add<bool>("manual-multiplexing",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment