aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-04-19 11:36:36 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-04-19 11:36:36 +0900
commit27092adb3e512f6dc5c991302cf0ad80e12e6594 (patch)
tree9aea2184e256a1608df2d1413ca0be879409884d
parent155333d139f49e284cef8e069daf7e5ad8f4dbd5 (diff)
downloadaclog-27092adb3e512f6dc5c991302cf0ad80e12e6594.tar.gz
collector: unbind inactive worker_nodes
-rw-r--r--lib/collector/node_connection.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/collector/node_connection.rb b/lib/collector/node_connection.rb
index 4791df6..d12f567 100644
--- a/lib/collector/node_connection.rb
+++ b/lib/collector/node_connection.rb
@@ -6,6 +6,9 @@ module Collector
@@_id = 0
def initialize(queue)
+ # comm_inactivity_timeout exceed -> heatbeat -> (when alive) -> continue
+ # -> (when not) -> unbind
+ self.comm_inactivity_timeout = 10
@unpacker = MessagePack::Unpacker.new(symbolize_keys: true)
@connection_id = (@@_id += 1)
@authenticated = false