<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Shining Path of Least Resistance</title>
	<atom:link href="https://leastresistance.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://leastresistance.wordpress.com</link>
	<description>LeastResistance.Net</description>
	<lastBuildDate>Fri, 13 Jan 2012 14:39:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='leastresistance.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s-ssl.wordpress.com/i/buttonw-com.png</url>
		<title>The Shining Path of Least Resistance</title>
		<link>https://leastresistance.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://leastresistance.wordpress.com/osd.xml" title="The Shining Path of Least Resistance" />
	<atom:link rel='hub' href='https://leastresistance.wordpress.com/?pushpress=hub'/>
		<item>
		<title>New Chef BitTorrent Cookbook</title>
		<link>https://leastresistance.wordpress.com/2012/01/09/new-chef-bittorrent-cookbook/</link>
		<comments>https://leastresistance.wordpress.com/2012/01/09/new-chef-bittorrent-cookbook/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 04:25:32 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[chef]]></category>
		<category><![CDATA[opschef]]></category>
		<category><![CDATA[opscode]]></category>
		<category><![CDATA[bittorrent]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=436</guid>
		<description><![CDATA[Bittorrent is a well-established protocol and tool for peer-to-peer distribution of files. It is frequently used in large scale infrastructures for distributing content in a highly-efficient and exceptionally fast manner. I decided to write a general-purpose Chef bittorrent cookbook for providing BitTorrent Resources via a Lightweight Resource Provider (LWRP). While there was already a very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=436&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/BitTorrent">Bittorrent</a> is a well-established protocol and tool for peer-to-peer distribution of files. It is frequently used in large scale infrastructures for distributing content in a highly-efficient and exceptionally fast manner. I decided to write a general-purpose Chef <a href="http://community.opscode.com/cookbooks/bittorrent">bittorrent cookbook</a> for providing BitTorrent Resources via a Lightweight Resource Provider (LWRP). While there was already a very useful <a href="http://community.opscode.com/cookbooks/transmission">transmission cookbook</a> for downloading torrent files, I wanted to create LWRPs and a set of recipes that made it simple to seed and peer a file with minimal interaction.</p>
<p>Even though there are a tremendous number of BitTorrent applications available, I had 2 requirements: trackerless seeding and the ability to be easily daemonized. After researching quite a few clients, <a href="http://aria2.sourceforge.net/">aria2</a> was found to have the required features and turned out to work quite well. Trackerless torrents proved to be a poorly supported and/or documented feature for most tools, the key to using this with aria2 was to understand the need for seeding node to expose the distributed hash table (DHT) on a single port for ease of use and to include this in the creation of the torrent itself.</p>
<h2>TESTING</h2>
<p>In testing and benchmarking with a 4.2 gigabyte file (CentOS 6.2 DVD 1) on EC2 with 11 m1.smalls (1 seed and 10 peers), there were a number of interesting results. The chef-client run averaged about 8 and a half minutes (with download speeds around 11.4MiB/s) for the 10 nodes, this stayed fairly constant when moving to 20 nodes.</p>
<p>A separate test was done distributing the file with Apache as well. Not surprisingly the more nodes that were added, the slower the downloads became to the point where some failed because of timeouts. Apache could probably be configured to handle the scenario better, but this is why we use a peer-to-peer solution to avoid the single source. The average chef-client run was about 20 minutes for 10 nodes, which was twice as slow as the same test with 3 nodes.</p>
<p>There are definite bottlenecks on EC2, either on the filesystem or at the network level which is to be expected in a virtualized environment. File allocations on some machines take an order of magnitude longer than others, and some nodes are extremely slow in networking. With the larger test case of 20 nodes, some were even faster than with 10 nodes, a few outliers were exceptionally slow (as seen with any large sample of EC2 nodes). On my gigabit network with physical nodes, depending on the downloading drive (SSD or RAID-0 drives), I doubled these speeds with just 5 nodes. This would indicate that the drives or filesystems are the bottleneck.</p>
<h2>TRACKERLESS TORRENTS WITH DHT</h2>
<p>The first use case I wanted to get working was trackerless-torrents. To create the torrent we use the <a href="">mktorrent</a> package. For trackerless seeding from 10.0.0.10, we used the following command:<br />
<code><br />
  mktorrent -d -c \"Generated with Chef\" -a node://10.0.0.10:6881 -o test0.torrent mybigfile.tgz<br />
</code><br />
To run aria2 as a trackerless seeder in the foreground on 10.0.0.10, it is important to identify the DHT and listening ports (UDP and TCP respectively).<br />
<code><br />
  aria2c -V --summary-interval=0 --seed-ratio=0.0 --dht-file-path=/tmp/dht.dat --dht-listen-port 6881 --listen-port 6881 --d/tmp/ test0.torrent<br />
</code><br />
To run aria2 as a peer of a trackerless torrent on 10.0.0.10, you have to specify the &#8220;&#8211;dht-entry-point&#8221;.<br />
<code><br />
  aria2c -V --summary-interval=0 --seed-ratio=0.0 --dht-file-path=/tmp/dht.dat --dht-listen-port 6881 --listen-port 6881 --dht-entry-point=10.0.0.10:6881 --d/tmp/ test0.torrent<br />
</code><br />
This technique works, but has the limiting factor of needing to transfer the torrent file between machines. This is solved in the bittorrent cookbook by storing the torrent file in a data bag (future versions of the cookbook may support magnet URIs to remove the need for a file completely).</p>
<h2>LIGHTWEIGHT RESOURCE PROVIDERS</h2>
<p>Once I had identified the commands that worked for these operations, they needed to be encapsulated in a <a href="http://community.opscode.com/cookbooks/bittorrent">bittorrent</a> cookbook with LWRPs for creating torrents, seeding and peering the files.</p>
<p><b>bittorrent_torrent</b>: Given a file it creates a .torrent file for sharing a local file or directory via the [BitTorrent protocol](http://en.wikipedia.org/wiki/BitTorrent).</p>
<p><b>bittorrent_seed</b>: Share a local file via the [BitTorrent protocol](http://en.wikipedia.org/wiki/BitTorrent).</p>
<p><b>bittorrent_peer</b>: Downloads the file or files specified by a torrent via the [BitTorrent protocol](http://en.wikipedia.org/wiki/BitTorrent). Update notifications are triggered when a blocking download completes and on the initiation of seeding. There are also options on whether to block on the download and whether to continue seeding after download.</p>
<h2>RECIPES</h2>
<p>The recipes were provided as an easy way to use bittorrent to share and download files simply by passing the path and filename via<code>['bittorrent']['file']</code> and<code>['bittorrent']['path']</code> attributes. There are recipes to seed, peer and to stop the seeding and peering.</p>
<p><b>bittorrent::seed</b>: given the<code>['bittorrent']['file']</code>,<code>['bittorrent']['path']</code> attributes it will create a .torrent file for the file(s) to be distributed, store it in the `bittorrent` data bag and start seeding the distribution of the file(s).</p>
<p><b>bittorrent::peer</b>: given the<code>['bittorrent']['file']</code> and<code>['bittorrent']['path']</code> attributes it will look for a torrent in the bittorrent data bag that provides that file. If one exists, it will download the file and continue seeding depending on the value of the<code>['bittorrent'']['seed']</code> attribute (false by default).</p>
<p><b>bittorrent::stop</b>: stops either the seeding or peering of a file.</p>
<h2>FUTURE</h2>
<p>I plan on continuing development on this cookbook as it gets used in production environments and would appreciate any feedback or patches. Right now it is Ubuntu-only, but adding support for RHEL/CentOS is on the short-term roadmap and requires finding sources for the `mktorrent` and `aria2` packages. Using magnet URIs instead of a torrent file would probably be more efficient as well, since it would remove the distribution of the torrent file and allow the use of search to specify multiple seeders to prime the DHT.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/436/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=436&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2012/01/09/new-chef-bittorrent-cookbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>Spiceweasel 1.0</title>
		<link>https://leastresistance.wordpress.com/2012/01/03/spiceweasel-1-0/</link>
		<comments>https://leastresistance.wordpress.com/2012/01/03/spiceweasel-1-0/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 22:40:16 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[chef]]></category>
		<category><![CDATA[opschef]]></category>
		<category><![CDATA[opscode]]></category>
		<category><![CDATA[spiceweasel]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=431</guid>
		<description><![CDATA[One of the more useful things I&#8217;ve written since I&#8217;ve been at Opscode (over a year now) is a tool called Spiceweasel. Spiceweasel processes a simple YAML (or JSON) manifest that describes how to deploy Chef-managed infrastructure with the command-line tool knife. It is fairly simple, but it fills a useful niche by making it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=431&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the more useful things I&#8217;ve written since I&#8217;ve been at Opscode (over a year now) is a tool called <a href="https://github.com/mattray/spiceweasel">Spiceweasel</a>. <a href="https://github.com/mattray/spiceweasel">Spiceweasel</a> processes a simple YAML (or JSON) manifest that describes how to deploy Chef-managed infrastructure with the command-line tool knife. It is fairly simple, but it fills a useful niche by making it easy to document your infrastructure&#8217;s dependencies and how to deploy in a file that may be managed with version control. <a href="https://github.com/mattray/spiceweasel">Spiceweasel</a> also attempts to validate that the dependencies you list in your YAML manifest all exist in the repository and that all of their dependencies are included as well.</p>
<h2>Examples</h2>
<p>There is the <a href="https://github.com/mattray/ravel-repo">https://github.com/mattray/ravel-repo</a> which provides a working example for bootstrapping a Chef repository with <a href="https://github.com/mattray/spiceweasel">Spiceweasel</a>. The <a href="https://github.com/mattray/spiceweasel/tree/master/examples">examples directory</a> in GitHub is slowly getting more examples based on the <a href="http://help.opscode.com/kb/otherhelp">Chef Quick Starts</a>.</p>
<p>Given the example YAML file example.yml:</p>
<pre>
cookbooks:
- apache2:
- apt:
 - 1.2.0
- mysql:

environments:
- development:
- qa:
- production:

roles:
- base:
- iisserver:
- monitoring:
- webserver:

data bags:
- users:
 - alice
 - bob
 - chuck
- data:
 - *
- passwords:
 - secret secret_key
 - mysql
 - rabbitmq

nodes:
- serverA:
 - role[base]
 - -i ~/.ssh/mray.pem -x user --sudo -d ubuntu10.04-gems
- serverB serverC:
 - role[base]
 - -i ~/.ssh/mray.pem -x user --sudo -d ubuntu10.04-gems -E production
- ec2 4:
 - role[webserver] recipe[mysql::client]
 - -S mray -i ~/.ssh/mray.pem -x ubuntu -G default -I ami-7000f019 -f m1.small
- rackspace 3:
 - recipe[mysql],role[monitoring]
 - --image 49 --flavor 2
- windows_winrm winboxA:
 - role[base],role[iisserver]
 - -x Administrator -P 'super_secret_password'
- windows_ssh winboxB winboxC:
 - role[base],role[iisserver]
 - -x Administrator -P 'super_secret_password'
</pre>
<p>Spiceweasel generates the following knife commands:<br />
<code><br />
knife cookbook upload apache2<br />
knife cookbook upload apt<br />
knife cookbook upload mysql<br />
knife environment from file development.rb<br />
knife environment from file qa.rb<br />
knife environment from file production.rb<br />
knife role from file base.rb<br />
knife role from file iisserver.rb<br />
knife role from file monitoring.rb<br />
knife role from file webserver.rb<br />
knife data bag create users<br />
knife data bag from file users alice.json<br />
knife data bag from file users bob.json<br />
knife data bag from file users chuck.json<br />
knife data bag create data<br />
knife data bag create passwords<br />
knife data bag from file passwords mysql.json --secret-file secret_key<br />
knife data bag from file passwords rabbitmq.json --secret-file secret_key<br />
knife bootstrap serverA -i ~/.ssh/mray.pem -x user --sudo -d ubuntu10.04-gems -r 'role[base]'<br />
knife bootstrap serverB -i ~/.ssh/mray.pem -x user --sudo -d ubuntu10.04-gems -E production -r 'role[base]'<br />
knife bootstrap serverC -i ~/.ssh/mray.pem -x user --sudo -d ubuntu10.04-gems -E production -r 'role[base]'<br />
knife ec2 server create -S mray -i ~/.ssh/mray.pem -x ubuntu -G default -I ami-7000f019 -f m1.small -r 'role[webserver],recipe[mysql::client]'<br />
knife ec2 server create -S mray -i ~/.ssh/mray.pem -x ubuntu -G default -I ami-7000f019 -f m1.small -r 'role[webserver],recipe[mysql::client]'<br />
knife ec2 server create -S mray -i ~/.ssh/mray.pem -x ubuntu -G default -I ami-7000f019 -f m1.small -r 'role[webserver],recipe[mysql::client]'<br />
knife ec2 server create -S mray -i ~/.ssh/mray.pem -x ubuntu -G default -I ami-7000f019 -f m1.small -r 'role[webserver],recipe[mysql::client]'<br />
knife rackspace server create --image 49 --flavor 2 -r 'recipe[mysql],role[monitoring]'<br />
knife rackspace server create --image 49 --flavor 2 -r 'recipe[mysql],role[monitoring]'<br />
knife rackspace server create --image 49 --flavor 2 -r 'recipe[mysql],role[monitoring]'<br />
knife bootstrap windows winrm winboxA -x Administrator -P 'super_secret_password' -r 'role[base],role[iisserver]'<br />
knife bootstrap windows ssh winboxB -x Administrator -P 'super_secret_password' -r 'role[base],role[iisserver]'<br />
knife bootstrap windows ssh winboxC -x Administrator -P 'super_secret_password' -r 'role[base],role[iisserver]'<br />
</code></p>
<h2>Cookbooks</h2>
<p>The `cookbooks` section of the manifest currently supports `knife cookbook upload FOO` where `FOO` is the name of the cookbook in the `cookbooks` directory. The default behavior is to download the cookbook as a tarball, untar it and remove the tarball. The `&#8211;siteinstall` option will allow for use of `knife cookbook site install` with the cookbook and the creation of a vendor branch if git is the underlying version control. If a version is passed, it is validated against the existing cookbook `metadata.rb` and it must match the `metadata.rb` string exactly. Validation is also done to ensure dependencies listed in the metadata for the cookbooks exists.</p>
<h2>Environments</h2>
<p>The `environments` section of the manifest currently supports `knife environment from file FOO` where `FOO` is the name of the environment file ending in `.rb` or `.json` in the `environments` directory. Validation is done to ensure the filename matches the environment and that any cookbooks referenced are listed in the manifest.</p>
<h2>Roles</h2>
<p>The `roles` section of the manifest currently supports `knife role from file FOO` where `FOO` is the name of the role file ending in `.rb` or `.json` in the `roles` directory. Validation is done to ensure the filename matches the role name and that any cookbooks or roles referenced are listed in the manifest.</p>
<h2>Data Bags</h2>
<p>The `data bags` section of the manifest currently creates the data bags listed with `knife data bag create FOO` where `FOO` is the name of the data bag. Individual items may be added to the data bag as part of a JSON or YAML sequence, the assumption is made that they `.json` files and in the proper `data_bags/FOO` directory. You may also pass a wildcard as an entry to load all matching data bags (ie. `*`). Encrypted data bags are supported by listing `secret filename` as the first item (where `filename` is the secret key to be used). Validation is done to ensure the JSON is properly formatted, the id matches and any secret keys are in the correct locations.</p>
<h2>Nodes</h2>
<p>The `nodes` section of the manifest bootstraps a node for each entry where the entry is a hostname or provider and count. A shortcut syntax for bulk-creating nodes with various providers where the line starts with the provider and ends with the number of nodes to be provisioned. Windows nodes need to specify either `windows_winrm` or `windows_ssh` depending on the protocol used, followed by the name of the node(s). Each node requires 2 items after it in a sequence. You may also use the `&#8211;parallel` flag from the command line, allowing provider commands to run simultaneously for faster deployment.</p>
<p>The first item after the node is the run_list and the second are the CLI options used. The run_list may be space or comma-delimited. Validation is performed on the run_list components to ensure that only cookbooks and roles listed in the manifest are used. Validation on the options ensures that any Environments referenced are also listed. You may specify multiple nodes to have the same configuration by listing them separated by a space.</p>
<h2>Status and Roadmap</h2>
<p><a href="https://github.com/mattray/spiceweasel">Spiceweasel</a> has now hit version 1.0, it&#8217;s fairly complete and there are no open issues. I&#8217;ll continue to track changes in Chef and fix any issues that arise. If I start feeling ambitious (or someone sends patches), I may turn it into a knife plugin. I&#8217;ve also considered having <a href="https://github.com/mattray/spiceweasel">Spiceweasel</a> &#8220;extract&#8221; existing infrastructure, by parsing a list of nodes and documenting their cookbooks, environments, roles and run lists. I&#8217;ll write another post soon about using it in the &#8220;real world&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=431&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2012/01/03/spiceweasel-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>Updates to the Opscode Chef drbd cookbook</title>
		<link>https://leastresistance.wordpress.com/2011/09/30/updates-to-the-opscode-chef-drbd-cookbook/</link>
		<comments>https://leastresistance.wordpress.com/2011/09/30/updates-to-the-opscode-chef-drbd-cookbook/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 22:39:42 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[chef]]></category>
		<category><![CDATA[opschef]]></category>
		<category><![CDATA[opscode]]></category>
		<category><![CDATA[drbd]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=413</guid>
		<description><![CDATA[I&#8217;ve recently been working on some updates to the OpenStack Cookbooks with Dell &#38; Rackspace for use with Crowbar and we wanted to make a few of the services more fault-tolerant. The first step was to add drbd-based drive mirroring, so it was time to update the existing drbd cookbook. I tested with Ubuntu 10.04 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=413&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been working on some updates to the <a href="http://bit.ly/OSChef">OpenStack Cookbooks</a> with Dell &amp; Rackspace for use with <a href="https://github.com/dellcloudedge/crowbar" title="Crowbar">Crowbar</a> and we wanted to make a few of the services more fault-tolerant. The first step was to add drbd-based drive mirroring, so it was time to update the existing <a href="http://github.com/opscode/cookbooks/tree/master/drbd" title="DRBD">drbd cookbook</a>.</p>
<p>I tested with Ubuntu 10.04 and 10.10 server installations. You must have the &#8216;linux-server&#8217; and &#8216;linux-headers-server&#8217; packages installed to properly support the drbd module. The drbd cookbook does not partition the drives, you&#8217;ll need to have that configured in advance or with another cookbook. It will format partitions given a filesystem type, set the <code>node['drbd']['fs_type']</code> to &#8216;xfs&#8217; or &#8216;ext4&#8242; or whatever. I used &#8216;xfs&#8217; in my <a href="https://github.com/opscode/cookbooks/tree/master/drbd/examples/roles" title="Roles">example roles</a>.</p>
<p>The <a href="https://github.com/opscode/cookbooks/blob/master/drbd/recipes/pair.rb" title="drbd::pair">drbd::pair</a> recipe can be used to configure 2 nodes to mirror a mount point. The master node (identified by <code>node['drbd']['master'] = true</code>) will claim the primary, format the filesystem and mount the partition. The slave will simply mirror without mounting. It currently takes 2 chef-client runs to ensure the pair is synced properly, there is some timing issue with the mount resource that I haven&#8217;t identified yet. </p>
<p>Setting up the 2 boxes is fairly simple, just update the 2 included <a href="https://github.com/opscode/cookbooks/tree/master/drbd/examples/roles" title="Roles">example roles</a>.</p>
<table border="0" cellpadding="10">
<tr>
<th>drbd-pair-master</th>
<th>drbd-pair</th>
</tr>
<tr>
<td>
<pre>
name "drbd-pair-master"
description "DRBD pair role."

override_attributes(
  "drbd" =&gt; {
    "remote_host" =&gt; "ubuntu2-1004.vm",
    "disk" =&gt; "/dev/sdb1",
    "fs_type" =&gt; "xfs",
    "mount" =&gt; "/shared",
    "master" =&gt; true
  }
  )

run_list(
  "recipe[xfs]",
  "recipe[drbd::pair]"
  )
</pre>
</td>
<td>
<pre>
name "drbd-pair"
description "DRBD pair role."

override_attributes(
  "drbd" =&gt; {
    "remote_host" =&gt; "ubuntu1-1004.vm",
    "disk" =&gt; "/dev/sdb1",
    "fs_type" =&gt; "xfs",
    "mount" =&gt; "/shared"
  }
  )

run_list(
  "recipe[xfs]",
  "recipe[drbd::pair]"
  )
</pre>
</td>
</tr>
</table>
<p>Add the roles to your 2 nodes with the proper <code>['drbd']['remote_host']</code> values set and the next <code>chef-client</code> run will configure drbd mirroring. Run <code>chef-client</code> again on the master and the share will be mounted. I&#8217;ll be hooking this up to pacemaker next.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=413&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2011/09/30/updates-to-the-opscode-chef-drbd-cookbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>##MonitoringSucks Terminology: Zenoss Breakdown</title>
		<link>https://leastresistance.wordpress.com/2011/08/05/monitoringsucks-terminology-zenoss-breakdown/</link>
		<comments>https://leastresistance.wordpress.com/2011/08/05/monitoringsucks-terminology-zenoss-breakdown/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 15:23:16 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[monitoring]]></category>
		<category><![CDATA[monitoringsucks]]></category>
		<category><![CDATA[zenoss]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=403</guid>
		<description><![CDATA[Following up on the 07/21/11 ##monitoringsucks IRC discussion on terminology, I thought I&#8217;d break down Zenoss as an example of how I believe the terminology applies. Primitives metrics: This is the raw monitoring data. Zenoss supports a wide variety of collection techniques, and metrics are stored as &#8220;Data Points&#8221; in RRD. context: Zenoss has &#8220;Thresholds&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=403&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following up on the <a href="http://lusislog.blogspot.com/2011/07/monitoring-sucks-watch-your-language.html">07/21/11 ##monitoringsucks IRC discussion on terminology</a>, I thought I&#8217;d break down Zenoss as an example of how I believe the terminology applies.</p>
<h1 id="primitives">Primitives</h1>
<ul>
<li><b>metrics</b>: This is the raw monitoring data. Zenoss supports a wide variety of collection techniques, and metrics are stored as &#8220;Data Points&#8221; in RRD.</li>
<li><b>context</b>: Zenoss has &#8220;Thresholds&#8221; attached to the &#8220;Data Points&#8221; which trigger &#8220;Events&#8221;. Thresholds may be exceeding a value, a specific value, falling within (or outside) of a range or Holt Winters. The Event context contains the originating resource (device and IP), event state (new, acknowledged, suppressed), severity (0-5), event summary, specific details (message) and an event id.</li>
<li><b>resource</b>: As the source of a metric, Zenoss has Devices that are the direct source of the metrics.</li>
<li><b>event</b>: Map directly to Zenoss&#8217; Events, with the context and actions part of the Event subsystem.</li>
<li><b>action</b>: Zenoss has a fairly rich Event system, with a wide variety of possible &#8216;actions&#8217; when an Event enters the system (whether by a Threshold or some other source). It may be dropped, deduplicated, transformed, sent to history, trigger event commands or generate alerts. Correlation may be done with transforms in Python.</li>
</ul>
<h1 id="components">Components</h1>
<h2 id="model">Model</h2>
<p>Zenoss tries to create a model of all the monitored infrastructure.<br />
Individual resources are presented as &#8220;Devices&#8221;, something with an IP address that may or may not be a map to a single node.<br />
Devices are organized in a single &#8220;Device Class&#8221; which determines how they are modeled and how and what metrics are collected.<br />
&#8220;Modeling&#8221; in Zenoss is the attempt to discover all the attributes of a device (network interfaces, filesystems, installed hardware and software, etc.).<br />
Modeling is performed by &#8220;Modeling Plugins&#8221; (attached to Device Classes or individual devices) which may use a variety of protocols to discover what is on a Device (SNMP, SSH, WMI, etc.).<br />
Device Classes have &#8220;Monitoring Templates&#8221; attached to them that define how and what to monitor.<br />
Modeling Plugins and Monitoring Templates may be reused, overwritten and extended by Device Classes.<br />
Zenoss may be configured to automatically discover the nodes on a network range or subnet and create a network map of all the devices.<br />
Devices may be added to a single &#8220;Location&#8221;, which may be mapped and presented in the UI with a Google map.<br />
Devices may also belong to multiple Groups and/or Systems (essentially 2 separate tag hierarchies).</p>
<h2 id="collection">Collection</h2>
<p>Zenoss supports a wide variety of availability and performance monitoring, from both active and passive sources.<br />
Most protocols map to a specific daemon, responsible for collecting the data and pushing it into the system to be stored in RRD files.<br />
RRD has a variety of ways for storing data, but the metrics are represented numerically with a timestamp.<br />
Out of the box Zenoss monitors</p>
<ul>
<li>ICMP: ping (zenping)</li>
<li>JMX: performance monitoring (zenjmx via the zenjmx ZenPack)</li>
<li>TCP: port checks (zenstatus)</li>
<li>SNMP: performance, process-monitoring and receive traps (zenperfsnmp, zenprocess, zentrap)</li>
<li>SSH/Telnet: v1/v2 (zencommand)</li>
<li>Syslog: receive syslog messages (zensyslog)</li>
<li>WMI: Windows event log (zeneventlog)</li>
<li>Zenoss can reuse Nagios and Cacti plugins as well</li>
</ul>
<p>There are quite a few community extensions (ZenPacks) providing additional collection features</li>
<h2 id="event">Event Processing</h2>
<p>As mentioned in the section on primitives, Zenoss has a Event system that handles context, events and actions.<br />
Events may use their Devices, Device Classes, Locations, Systems and Groups for additional context.<br />
Zenoss Events are stored in a MySQL data base.</p>
<h2 id="analytics">Analytics</h2>
<p>Correlation of events is done in the Event system, written in Python.<br />
Graphing of metrics are available with RRD graphs and all the variations supported therein (single/multiple values, stacked graphs, multiple devices).<br />
The Event Console makes it easy to quickly search and filter specific event values.<br />
Example reports are included but writing custom reports is difficult because of the disparate storage mechanisms for metrics, events and configuration.</p>
<h2 id="presentation">Presentation</h2>
<p>Zenoss has a featureful UI with an emphasis on monitoring thousands of nodes at a time and rolling up events in the Event Console.<br />
There is a configurable dashboard that has a number of configurable portlets that may be applied (reports, events, graphs, web sites, etc.) .<br />
It is a webapp mostly using javascript (ExtJS) on top of the Python Zope application server.<br />
Lightweight ACLs are available and multiple users are supported for</p>
<h2 id="config">Configuration</h2>
<p>The user interface for Zenoss is focused on making it easy to manage monitoring thousands of devices by configuring their Device Classes and applying Devices to them (as opposed to individual devices).<br />
While configuration is primarily through the UI, there are tools for bulk-loading devices from files or scripting as well.<br />
There is a command-line interactive interface to the object database (zendmd) that can be used to query and alter the monitored infrastructure.</p>
<h2 id="storage">Storage</h2>
<p>Metrics are stored in RRD.<br />
Events are stored in MySQL.<br />
Configuration and relationships between objects are stored in the Zope Object Database (ZODB).</p>
<h2 id="api">API</h2>
<p>Zenoss has published JSON API for interacting remotely with examples in Python and Ruby (most of the UI uses these APIs).<br />
There is also published Developer Documentation for extending and writing plugins.<br />
The zendmd tool may be used to interact with Zenoss programatically as well via scripting.</p>
<h1 id="conclusions">Conclusions</h1>
<p>Zenoss tries to provide a framework for monitoring thousands of machines that is flexible enough to contain network devices, servers and services. The terminology and taxonomy that emerged from IRC discussion fit fairly well, hopefully we can at least attempt to compare apples and apples when it comes to discussing different monitoring implementations.</p>
<p>It would probably be worthwhile to make a future post breaking down the strengths and weaknesses of Zenoss&#8217; approach as well as which components would be easiest to reuse within other systems.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=403&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2011/08/05/monitoringsucks-terminology-zenoss-breakdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>##MonitoringSucks Terminology (first stab)</title>
		<link>https://leastresistance.wordpress.com/2011/07/12/monitoringsucks-terminology-first-stab/</link>
		<comments>https://leastresistance.wordpress.com/2011/07/12/monitoringsucks-terminology-first-stab/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 22:35:01 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[monitoring]]></category>
		<category><![CDATA[monitoringsucks]]></category>
		<category><![CDATA[zenoss]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=387</guid>
		<description><![CDATA[Inspired by the recent ##monitoringsucks discussions, I thought I&#8217;d add my thoughts on creating a common set of terminology so we can start making progress. There are a multitude of monitoring solutions out there, but most can be categorized and described with the following basic terminology and components: Collection Metrics Thresholds Collecting Model Events Alerting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=387&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Inspired by the recent <a href="https://github.com/monitoringsucks">##monitoringsucks</a> discussions, I thought I&#8217;d add my thoughts on creating a common set of terminology so we can start making progress.</p>
<p>
There are a multitude of monitoring solutions out there, but most can be categorized and described with the following basic terminology and components:
</p>
<div id="table-of-contents">
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">Collection </a>
<ul>
<li><a href="#sec-1.1">Metrics </a></li>
<li><a href="#sec-1.2">Thresholds </a></li>
<li><a href="#sec-1.3">Collecting </a></li>
</ul>
</li>
<li><a href="#sec-2">Model </a></li>
<li><a href="#sec-3">Events </a></li>
<li><a href="#sec-4">Alerting </a></li>
<li><a href="#sec-5">Presentation </a>
<ul>
<li><a href="#sec-5.1">UI </a></li>
<li><a href="#sec-5.2">Reporting </a></li>
</ul>
</li>
<li><a href="#sec-6">Cross-cutting Concerns</a>
<ul>
<li><a href="#sec-6.1">API </a></li>
<li><a href="#sec-6.2">Configuration </a></li>
<li><a href="#sec-6.3">Storage </a></li>
</ul>
</li>
</ul>
</div>
</div>
<p>Each of the major components could be a separate, single-purpose application. With consistent APIs and interchangeable implementations, best-of-breed solutions could arise. A catalog of monitoring tools could be cultivated and maybe monitoring wouldn&#8217;t suck as much.</p>
<div id="outline-container-1" class="outline-2">
<h1 id="sec-1">Collection</h1>
<div class="outline-text-2" id="text-1">
<p>This is the gathering of raw data that we care about for monitoring. There are 3 components to Collection:
</p>
</div>
<div id="outline-container-1.1" class="outline-3">
<h3 id="sec-1.1">Metrics </h3>
<div class="outline-text-3" id="text-1.1">
<p>The data points that you want monitored. These can be OIDs, metrics, REST calls or whatever. They may be performance and/or availability, active and/or passive. This is the raw data.
</p>
</div>
</div>
<div id="outline-container-1.2" class="outline-3">
<h3 id="sec-1.2">Thresholds </h3>
<div class="outline-text-3" id="text-1.2">
<p>Metrics have a range of legitimate values, thresholds are the limits on the legitimate values. These may be on individual or combinations of metrics.
</p>
</div>
</div>
<div id="outline-container-1.3" class="outline-3">
<h3 id="sec-1.3">Collecting </h3>
<div class="outline-text-3" id="text-1.3">
<p>The actual process of gathering data varies depending on the metrics. There are a wide variety of monitoring protocols (SNMP, WMI, Syslog, JMX, etc.), we need to document how we collect the metrics.
</p>
</div>
</div>
</div>
<div id="outline-container-2" class="outline-2">
<h1 id="sec-2">Model </h1>
<div class="outline-text-2" id="text-2">
<p>This is the representation of what you are collecting, a collection of metrics and thresholds. The Model is a collection of Nodes. A Node is typically a single machine, but may cover multiple of metrics from separate machines or services (think services and clusters) depending on the implementation. There may be no Model whatsoever (lists of metrics checks).
</p>
</div>
</div>
<div id="outline-container-3" class="outline-2">
<h1 id="sec-3">Events </h1>
<div class="outline-text-2" id="text-3">
<p>Events are what happens when a threshold is violated. They may be suppressed, de-duplicated and possibly correlated with other events. There may be dependencies between Nodes or correlations with other Events, implementations may vary.
</p>
</div>
</div>
<div id="outline-container-4" class="outline-2">
<h1 id="sec-4">Alerting </h1>
<div class="outline-text-2" id="text-4">
<p>Separate from Events, alerting is the means to notify people and systems that an Event requires attention. There are numerous mechanisms for alerting (email, paging, asterisk, log, etc.) and ideally the Alerting component has the concept of users, schedules and escalation rules.
</p>
</div>
</div>
<div id="outline-container-5" class="outline-2">
<h1 id="sec-5">Presentation </h1>
<div class="outline-text-2" id="text-5">
<p>There are 2 pieces to the Presentation component:
</p>
</div>
<div id="outline-container-5.1" class="outline-3">
<h3 id="sec-5.1">UI </h3>
<div class="outline-text-3" id="text-5.1">
<p>The Monitoring solution may or may not have/need a UI. This is visual representation of the Model, Events and possibly Alerts. There may be a Dashboard rolling up different views into the information captured by the monitoring solution.
</p>
</div>
</div>
<div id="outline-container-5.2" class="outline-3">
<h3 id="sec-5.2">Reporting </h3>
<div class="outline-text-3" id="text-5.2">
<p>Ideally the data captured by the monitoring solution is available for whatever reporting you want to do. It may be in SQL databases, RRD or some other format but the ability to access the data and create new reports is essential.
</p>
</div>
</div>
</div>
<div id="outline-container-6" class="outline-2">
<h1 id="sec-6">Cross-cutting Concerns</h1>
<div class="outline-text-2" id="text-6">
</div>
<div id="outline-container-6.1" class="outline-3">
<h3 id="sec-6.1">API </h3>
<div class="outline-text-3" id="text-6.1">
<p>Ideally every component should have published APIs for interacting with programatically and/or remotely. Without an API, monitoring tools become less and less relevant in the face of increasing automation.
</p>
</div>
</div>
<div id="outline-container-6.2" class="outline-3">
<h3 id="sec-6.2">Configuration </h3>
<div class="outline-text-3" id="text-6.2">
<p>As with APIs, all monitoring framework components need to be easily automated by configuration tools.
</p>
</div>
</div>
<div id="outline-container-6.3" class="outline-3">
<h3 id="sec-6.3">Storage </h3>
<div class="outline-text-3" id="text-6.3">
<p>Where metrics are stored. There are lots of choices, they should be accessible for reports and via an API.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/387/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=387&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2011/07/12/monitoringsucks-terminology-first-stab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>links for 2010-12-16</title>
		<link>https://leastresistance.wordpress.com/2010/12/16/links-for-2010-12-16/</link>
		<comments>https://leastresistance.wordpress.com/2010/12/16/links-for-2010-12-16/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 08:00:56 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/2010/12/16/links-for-2010-12-16/</guid>
		<description><![CDATA[http://jblevins.org/git/markdown-mode.git/plain/markdown-mode.el Emacs markdown-mode (tags: markdown emacs)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=384&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://jblevins.org/git/markdown-mode.git/plain/markdown-mode.el">http://jblevins.org/git/markdown-mode.git/plain/markdown-mode.el</a></div>
<div class="delicious-extended">Emacs markdown-mode</div>
<div class="delicious-tags">(tags: <a href="http://www.delicious.com/mray/markdown">markdown</a> <a href="http://www.delicious.com/mray/emacs">emacs</a>)</div>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=384&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2010/12/16/links-for-2010-12-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>links for 2010-12-15</title>
		<link>https://leastresistance.wordpress.com/2010/12/15/links-for-2010-12-15/</link>
		<comments>https://leastresistance.wordpress.com/2010/12/15/links-for-2010-12-15/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 08:10:36 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/2010/12/15/links-for-2010-12-15/</guid>
		<description><![CDATA[sometimesfood/icanhas-wikileaks &#8211; GitHub Build your own Wikileaks mirror using Chef. (tags: wikileaks chef opschef)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=383&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="https://github.com/sometimesfood/icanhas-wikileaks">sometimesfood/icanhas-wikileaks &#8211; GitHub</a></div>
<div class="delicious-extended">Build your own Wikileaks mirror using Chef.</div>
<div class="delicious-tags">(tags: <a href="http://www.delicious.com/mray/wikileaks">wikileaks</a> <a href="http://www.delicious.com/mray/chef">chef</a> <a href="http://www.delicious.com/mray/opschef">opschef</a>)</div>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=383&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2010/12/15/links-for-2010-12-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>links for 2010-12-10</title>
		<link>https://leastresistance.wordpress.com/2010/12/10/links-for-2010-12-10/</link>
		<comments>https://leastresistance.wordpress.com/2010/12/10/links-for-2010-12-10/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 08:01:00 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/2010/12/10/links-for-2010-12-10/</guid>
		<description><![CDATA[RegExr Regular Expression testing tool. (tags: regex)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=381&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://gskinner.com/RegExr/">RegExr</a></div>
<div class="delicious-extended">Regular Expression testing tool.</div>
<div class="delicious-tags">(tags: <a href="http://www.delicious.com/mray/regex">regex</a>)</div>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/381/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=381&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2010/12/10/links-for-2010-12-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>links for 2010-12-09</title>
		<link>https://leastresistance.wordpress.com/2010/12/09/links-for-2010-12-09/</link>
		<comments>https://leastresistance.wordpress.com/2010/12/09/links-for-2010-12-09/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 08:00:59 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/2010/12/09/links-for-2010-12-09/</guid>
		<description><![CDATA[infochimps/cluster_chef &#8211; GitHub From InfoChimps: ClusterChef will help you create a scalable, efficient compute cluster in the cloud. (tags: chef bigdata opschef)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=380&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="https://github.com/infochimps/cluster_chef">infochimps/cluster_chef &#8211; GitHub</a></div>
<div class="delicious-extended">From InfoChimps: ClusterChef will help you create a scalable, efficient compute cluster in the cloud.</div>
<div class="delicious-tags">(tags: <a href="http://www.delicious.com/mray/chef">chef</a> <a href="http://www.delicious.com/mray/bigdata">bigdata</a> <a href="http://www.delicious.com/mray/opschef">opschef</a>)</div>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/380/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=380&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2010/12/09/links-for-2010-12-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
		<item>
		<title>New Frontiers (for me) in Ruby</title>
		<link>https://leastresistance.wordpress.com/2010/12/07/new-frontiers-for-me-in-ruby/</link>
		<comments>https://leastresistance.wordpress.com/2010/12/07/new-frontiers-for-me-in-ruby/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 16:23:28 +0000</pubDate>
		<dc:creator>mattray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leastresistance.wordpress.com/?p=375</guid>
		<description><![CDATA[As part of my new job I&#8217;m picking up Ruby 3 years after the last time I used it. Not surprisingly, it&#8217;s really nice now. I wanted to start a reminder blog post of all the useful tools I&#8217;ve installed on the way: RVM: manages multiple installed versions of Ruby. My PS1 is automatically configured [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=375&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As part of <a href="https://leastresistance.wordpress.com/2010/10/29/time-for-a-change/">my new job</a> I&#8217;m picking up Ruby 3 years after the last time I used it.  Not surprisingly, it&#8217;s really nice now.  I wanted to start a reminder blog post of all the useful tools I&#8217;ve installed on the way:</p>
<ul>
<li><a href="http://rvm.beginrescueend.com">RVM</a>: manages multiple installed versions of Ruby.  My PS1 is automatically configured now to show the output of <a href="http://rvm.beginrescueend.com/workflow/prompt/">rvm-prompt</a> with the use of a <a href="http://rvm.beginrescueend.com/workflow/hooks/">after-use hook</a>.</li>
<li><a href="https://github.com/aanand/git-up#readme">Git-Up</a>: automatically fast-forwards a git rebase.</li>
<li><a href="https://github.com/fnando/gem-open">gem-open</a>: opens up the Gem&#8217;s source in your $EDITOR (which should be <strong>emacs</strong>). </li>
<li><a href="http://chriswanstrath.com/gem-man/">gem-man</a>: opens man pages for Ruby gems.</li>
<li><a href="https://github.com/senny/rvm.el#readme">rvm.el</a>: RVM integration for Emacs.</li>
</ul>
<p>I also recently put my <a href="https://github.com/mattray/home-directory/blob/master/.emacs">.emacs</a> and<a href="https://github.com/mattray/home-directory/blob/master/.bash_profile"> .bash_profile</a> into <a href="https://github.com/mattray">my GitHub account</a>, to track changes as I make them.  Feel free to send me any other suggestions or pointers, I&#8217;m always happy to learn more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leastresistance.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leastresistance.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leastresistance.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leastresistance.wordpress.com&amp;blog=3031910&amp;post=375&amp;subd=leastresistance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://leastresistance.wordpress.com/2010/12/07/new-frontiers-for-me-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/1341777c782c711c19675c80bacae6a5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mray</media:title>
		</media:content>
	</item>
	</channel>
</rss>
