This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mon, 26 Oct 2009 21:57:11 +0000] INFO: Starting Chef Run | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: Loading plugin os | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: Loading plugin ruby | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: Loading plugin languages | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: Loading plugin kernel | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: ---- Begin uname -s STDOUT ---- | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: Linux | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: ---- End uname -s STDOUT ---- | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: ---- Begin uname -s STDERR ---- | |
[Mon, 26 Oct 2009 21:57:11 +0000] DEBUG: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ganglia_interface(host) | |
if host[:ganglia] && host[:ganglia][:cluster] && host[:ganglia][:cluster][:interface] | |
interface = host[:ganglia_cluster][:interface] | |
else | |
interface = host[:network][:default_interface] | |
end | |
end | |
def ganglia_ip(host) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Net::Stomp; | |
use Data::Dumper; | |
while(1) { | |
eval { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'xml/libxml' | |
Gmeta | |
include XML::SaxParser::Callbacks | |
def initialize | |
@ganglia = {} | |
@grid = nil | |
@cluster = nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasonc@trask:~$ ruby libxml_sax.rb | |
Thread ID: 70237214132660 | |
Total Time: 0.14 | |
%total %self total self wait child calls Name | |
-------------------------------------------------------------------------------- | |
100.00% 0.00% 0.14 0.00 0.00 0.14 1 Global#[No method] (libxml_sax.rb:64} libxml_sax.rb:64 | |
0.14 0.11 0.00 0.03 1/1 LibXML::XML::SaxParser#parse | |
0.00 0.00 0.00 0.00 1/2 Class#new | |
0.00 0.00 0.00 0.00 1/1 <Class::LibXML::XML::SaxParser>#file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sequential Reads | |
File Blk Num Avg Maximum Lat% Lat% CPU | |
Identifier Size Size Thr Rate (CPU%) Latency Latency >2s >10s Eff | |
---------------------------- ------ ----- --- ------ ------ --------- ----------- -------- -------- ----- | |
2.6.33.1-wikia 98304 4096 1 673.27 22.21% 0.006 2.62 0.00000 0.00000 3031 | |
2.6.33.1-wikia 98304 4096 3 747.55 61.86% 0.012 13.87 0.00000 0.00000 1208 | |
2.6.33.1-wikia 98304 4096 6 780.92 119.1% 0.022 33.00 0.00000 0.00000 656 | |
2.6.33.1-wikia 98304 4096 12 763.32 245.1% 0.046 63.59 0.00000 0.00000 311 | |
2.6.33.1-wikia 98304 4096 24 752.84 529.6% 0.103 207.99 0.00000 0.00000 142 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:2103:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/rest.rb:253:in `streaming_request' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/rest.rb:268:in `retriable_rest_request' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/rest.rb:231:in `streaming_request' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/rest.rb:99:in `get_rest' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/client.rb:277:in `sync_cookbook_file_cache' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/client.rb:258:in `each' | |
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/../lib/chef/client.rb:258:in `sync_cookbook_file_cache' | |
from /opt/r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_ifs_and_addrs | |
interfaces = {} | |
curr_inf = "" | |
IO.popen("ip a").each do |line| | |
if line =~ /^\d+?: (.*):/ | |
interfaces[$1] = Array.new | |
curr_inf = $1 | |
end | |
if line =~ /\s+inet\s(.*)\// | |
interfaces[curr_inf] << $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run #1: /usr/bin/tiotest -t 8 -f 6125 -r 500 -b 4096 -d . -T | |
Unit information | |
================ | |
File size = megabytes | |
Blk Size = bytes | |
Rate = megabytes per second | |
CPU% = percentage of CPU used during the test | |
Latency = milliseconds | |
Lat% = percent of requests that took longer than X seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node 0, zone DMA | |
pages free 3916 | |
min 2 | |
low 2 | |
high 3 | |
scanned 0 | |
spanned 4080 | |
present 3923 | |
nr_free_pages 3916 | |
nr_inactive_anon 0 |