<?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/"
	>

<channel>
	<title>Mandarin Soda &#187; Slicehost</title>
	<atom:link href="http://mandarinsoda.com/category/slicehost/feed/" rel="self" type="application/rss+xml" />
	<link>http://mandarinsoda.com</link>
	<description>Random Musings, Sometimes Programming.</description>
	<lastBuildDate>Tue, 13 Sep 2011 05:00:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Monitoring Radiant CMS and Phusion Passenger on Slicehost</title>
		<link>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/</link>
		<comments>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 21:21:10 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[miscellaneous]]></category>
		<category><![CDATA[Radiant]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=160</guid>
		<description><![CDATA[In my previous post, I wrote about quickly setting an Ubuntu Hardy slice up with Radiant and the latest Phusion tools (mod_rails and Ruby Enterprise) and alluded to some setting up logging and monitoring as next steps. As monitoring and logging are fascinating subjects, I figured I&#8217;d follow up with a few sentences about what [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post, I wrote about quickly setting an Ubuntu Hardy slice up with Radiant and the latest Phusion tools (mod_rails and Ruby Enterprise) and alluded to some setting up logging and monitoring as next steps.  As monitoring and logging are fascinating subjects, I figured I&#8217;d follow up with a few sentences about what I configured.</p>
<p>Apache will log to its own log files, as well as <a href="http://httpd.apache.org/docs/1.3/logs.html#rotation">handle log rotation</a>, so nothing much to write about there.  However, as a good practice, you&#8217;ll likely want to rotate your Radiant logs.  And for that, you&#8217;ll want logrotate.  </p>
<p>Logrotate gets its configuration information from /etc/logrotate.conf, so one just needs to open it up and tell it to look at the Radiant logs and rotate them like so:</p>
<pre><code>
# Rotate Rails application logs
/path/to/radiant/shared/log/*.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
copytruncate
}
</pre>
<p></code></p>
<p>This will rotate 7 days worth of logs, compress older logs and start a new log file.   And it will do it daily. Simple.  </p>
<p>Monitoring is a bit more involved, but God makes it fairly easy, and its all in Ruby.  According to <a href="https://boxpanel.blueboxgrp.com/public/the_vault/index.php/Mod_Rails_Tips">this helpful site</a> mod_rails monitors its own processes, which leaves us to Monitor Apache, MySQL and any other processes running around.  The <a href="http://god.rubyforge.org/">God site</a> has very good documentation, so I suggest you head over there if you want detailed descriptions of everything it can do.  For the sake of this post, I'll just lead folks to simple Apache and MySQL configurations.</p>
<p>After installing God <code>sudo gem install god --no-ri --no-rdoc</code>, setup a conf.god somewhere sensible and take a look at the posts below, as it probably doesn't make sense for me to reiterate what others have already admirably accomplished:<br />
<a href="http://rubypond.com/articles/2007/12/28/touched-by-god-process-monitoring/">Monitoring MySQL and setting up notifications</a>.<br />
<a href="http://blog.blenderbox.com/2008/03/11/monitoring-apache-with-god/">Monitoring Apache</a>.</p>
<p>Now I just need to figure out what will monitor God.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F09%2Fmonitoring-radiant-cms-and-phusion-passenger-on-slicehost%2F&amp;title=Monitoring+Radiant+CMS+and+Phusion+Passenger+on+Slicehost" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/09/monitoring-radiant-cms-and-phusion-passenger-on-slicehost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Radiant CMS and Phusion Passenger + Ruby Enterprise on Slicehost</title>
		<link>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/</link>
		<comments>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 21:50:20 +0000</pubDate>
		<dc:creator>Matt Carlson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Slicehost]]></category>

		<guid isPermaLink="false">http://mandarinsoda.com/?p=136</guid>
		<description><![CDATA[I don&#8217;t really bother writing anything about Slicehost installs anymore, as Pickled Onion over at the slicehost articles site writes excellent, up-to-date articles on the most relevant deployment and configuration topics. However, I just did a Radiant install, complete with Phusion Passenger (mod_rails) and Ruby Enterprise on Ubuntu Hardy and found a nice shortcut I [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t really bother writing anything about Slicehost installs anymore, as Pickled Onion over at <a href="http://articles.slicehost.com/">the slicehost articles site</a> writes excellent, up-to-date articles on the most relevant deployment and configuration topics.  However, I just did a Radiant install, complete with Phusion Passenger (mod_rails) and Ruby Enterprise on Ubuntu Hardy and found a nice shortcut I thought I would share. </p>
<p>The shortcut in question is a fork of the <a href="http://mitchellhashimoto.com/ruby-enterprise-phusion-passenger-on-slicehost-screencast/">Sprinkle gem</a> by <a href="http://mitchellhashimoto.com/">Mitchell Hashimoto</a>.  Check out his screencast for the details and read the comments as well. I just had to change the Phusion Passenger versions in the scripts, modify the scripts to install MySQL and Radiant (<code>gem install radiant</code>) and I was good to go. </p>
<p>If you&#8217;ve never setup a Slice before, I don&#8217;t usually recommend using ready-made scripts, as it&#8217;s good to go through the steps &#8211; particularly as things do tend to break.  I had problems installing the MySQL gem from Capistrano for some reason I didn&#8217;t bother to dwell on for too long. Otherwise, I found the Sprinkle gem to be very helpful.  </p>
<p>Now onto monitoring with God, some logrotate and the other usual suspects. </p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fmandarinsoda.com%2F2008%2F09%2F06%2Finstalling-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost%2F&amp;title=Installing+Radiant+CMS+and+Phusion+Passenger+%2B+Ruby+Enterprise+on+Slicehost" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://mandarinsoda.com/2008/09/06/installing-radiant-cms-and-phusion-passenger-ruby-enterprise-on-slicehost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

