lib/beaker-pe/install/pe_utils.rb in beaker-pe-1.41.0 vs lib/beaker-pe/install/pe_utils.rb in beaker-pe-1.41.1

- old
+ new

@@ -499,10 +499,28 @@ end end end end + # Check system resources, so that we might be able to find correlations + # between absurd load levels and transients. + # @param [Array<Host>] hosts + # + # @example + # verify_vm_resources(hosts) + # + # @return nil + # + # @api private + def verify_vm_resources(hosts) + logger.notify("Checking the status of system (CPU/Mem) resources on PE Infrastructure nodes.") + pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'dashboard', 'database']}, hosts) + pe_infrastructure.each do |host| + on host, "top -bn1", :accept_all_exit_codes => true + end + end + #Perform a Puppet Enterprise upgrade or install # @param [Array<Host>] hosts The hosts to install or upgrade PE on # @param [Hash{Symbol=>Symbol, String}] opts The options # @option opts [String] :pe_dir Default directory or URL to pull PE package from # (Otherwise uses individual hosts pe_dir) @@ -532,9 +550,10 @@ # def do_install hosts, opts = {} # detect the kind of install we're doing install_type = determine_install_type(hosts, opts) verify_network_resources(hosts, options[:net_diag_hosts]) + verify_vm_resources(hosts) if opts[:use_proxy] config_master_for_proxy_access end case install_type when :pe_managed_postgres