lib/dcmgr/node_modules/instance_ha.rb in wakame-vdc-agents-10.12.0 vs lib/dcmgr/node_modules/instance_ha.rb in wakame-vdc-agents-11.06.0
- old
+ new
@@ -5,10 +5,10 @@
module NodeModules
class InstanceHA < Isono::NodeModules::Base
include Dcmgr::Logger
initialize_hook do
- @thread_pool = Isono::ThreadPool.new
+ @thread_pool = Isono::ThreadPool.new(1, 'InstanceHA')
event = Isono::NodeModules::EventChannel.new(node)
event.subscribe('hva/fault_instance', '#') { |args|
@thread_pool.pass {
inst_id = args[0]
inst = Models::Instance[inst_id]