Sha256: 2b75c2e7811db6d0c0bb62f9017d4e4d549f452bd965ec45c06b568abd829650

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'dcmgr/rubygems'
require 'dcmgr'
require 'isono'

Dcmgr.configure(File.expand_path('../../config/dcmgr.conf', __FILE__))

manifest = Isono::Runner::RpcServer::DEFAULT_MANIFEST.dup
manifest.instance_eval do
  node_name 'collector'
  node_instance_id 'master'

  load_module Isono::NodeModules::DataStore
  load_module Dcmgr::NodeModules::StaCollector
  load_module Isono::NodeModules::NodeCollector
  load_module Isono::NodeModules::JobCollector
  load_module Dcmgr::NodeModules::HvaCollector
  load_module Dcmgr::NodeModules::InstanceHA

  config do |c|
    c.data_store.connection_block = proc {
      require 'sequel'
      next if Isono::NodeModules::DataStore.disconnected? == false 
      Dcmgr.run_initializers('sequel')
    }
  end
end

Isono::Runner::RpcServer.start(manifest)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wakame-vdc-dcmgr-11.06.0 bin/collector