<?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>ProWSS Blog</title>
	<atom:link href="http://prowss.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://prowss.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 23 Sep 2009 05:54:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RRAS Monitor deployed in Cloud</title>
		<link>http://prowss.com/blog/2009/09/rras-monitor-deployed-in-cloud/</link>
		<comments>http://prowss.com/blog/2009/09/rras-monitor-deployed-in-cloud/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 03:19:57 +0000</pubDate>
		<dc:creator>SR</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[mosso]]></category>
		<category><![CDATA[rras]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://rras.wordpress.com/?p=20</guid>
		<description><![CDATA[Today we finished our first cloud deployment of RRAS::Monitor software.
We finished deploying the monitor in a RackspaceCloud instance running Ubuntu 9.
I cannot call the deployment smooth &#8211; mostly because BackgroundDB simply wouldn&#8217;t start. Saying this:

/var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:117:in `exec': No such file or directory - packet_worker_runner 10:9:monitor_runner_worker:4:/opt/rails/rras-monitor/lib/workers:/opt/rails/rras-monitor/script/load_worker_env (Errno::ENOENT)
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:117:in `fork_and_load'
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:68:in `load_workers'
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:63:in `each'
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:63:in `load_workers'
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:20:in `run'
from [...]]]></description>
			<content:encoded><![CDATA[<p>Today we finished our first cloud deployment of RRAS::Monitor software.</p>
<p>We finished deploying the monitor in a RackspaceCloud instance running Ubuntu 9.</p>
<p><span id="more-20"></span>I cannot call the deployment smooth &#8211; mostly because BackgroundDB simply wouldn&#8217;t start. Saying this:</p>
<p><code><br />
<span style="color:#ff0000;">/var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:117:in `exec': No such file or directory - packet_worker_runner 10:9:monitor_runner_worker:4:/opt/rails/rras-monitor/lib/workers:/opt/rails/rras-monitor/script/load_worker_env (Errno::ENOENT)<br />
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:117:in `fork_and_load'<br />
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:68:in `load_workers'<br />
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:63:in `each'<br />
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:63:in `load_workers'<br />
from /var/lib/gems/1.8/gems/packet-0.1.15/lib/packet/packet_master.rb:20:in `run'<br />
from /opt/rails/rras-monitor/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in `initialize'<br />
from /opt/rails/rras-monitor/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:109:in `new'<br />
from /opt/rails/rras-monitor/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:109:in `start_bdrb'<br />
from /opt/rails/rras-monitor/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:16:in `start'<br />
from ./script/backgroundrb:24</span></code></p>
<p>Nasty error took a lot of time to figure out. For some reason gem tool works slightly different on Ubuntu and fails to install scripts in /usr/bin or any accessible locations in PATH. So setting up mongrel_rails and backgroundb became a nightmare.</p>
<p>Finally comparing &#8220;packet&#8221; gem files to the working version of RRAS Monitor on another server I figured out that &#8220;/usr/bin/packet_worker_runner&#8221; in our case is not a symlink but in fact  a generated script. After that we simply copied that script from another box and corrected the paths.</p>
<p>Attaching the final version of the script for anybody how comes across the problem:<br />
<code><br />
<span style="color:#333333;">#!/usr/bin/ruby<br />
#<br />
# This file was generated by RubyGems.<br />
#<br />
# The application 'packet' is installed as part of a gem, and<br />
# this file is here to facilitate running it.<br />
#</span></code></p>
<p><span style="color:#333333;">require &#8216;rubygems&#8217;</span></p>
<p><span style="color:#333333;">version = &#8220;&gt;= 0&#8243;</span></p>
<p><span style="color:#333333;">if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then<br />
version = $1<br />
ARGV.shift<br />
end</span></p>
<p><span style="color:#333333;">gem &#8216;packet&#8217;, version<br />
load &#8216;packet_worker_runner&#8217;</span><br />
<span style="color:#000000;">Now that we have cloud deployment in place I can work to improve connectivity between Monitor instances. </span></p>
<p><span style="color:#000000;">Stay in touch!<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://prowss.com/blog/2009/09/rras-monitor-deployed-in-cloud/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Monitoring Updated</title>
		<link>http://prowss.com/blog/2009/09/monitoring-updated/</link>
		<comments>http://prowss.com/blog/2009/09/monitoring-updated/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 04:51:57 +0000</pubDate>
		<dc:creator>SR</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rras.wordpress.com/?p=13</guid>
		<description><![CDATA[I&#8217;ve added few small yet great additions to RRAS monitor:

fixes to the charts &#8211; now they look better and aligned correctly
created email notification system that sends out emails to one or many people if a service breaks or is fixed
few CSS corrections for the layout

Please don&#8217;t forget to configure your email settings in config/initializers/mail.rb before [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added few small yet great additions to RRAS monitor:</p>
<ul>
<li>fixes to the charts &#8211; now they look better and aligned correctly</li>
<li>created email notification system that sends out emails to one or many people if a service breaks or is fixed</li>
<li>few CSS corrections for the layout</li>
</ul>
<p>Please don&#8217;t forget to configure your email settings in config/initializers/mail.rb before using e-mail feature.</p>

<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://prowss.com/blog/2009/09/monitoring-updated/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring</title>
		<link>http://prowss.com/blog/2009/07/monitoring/</link>
		<comments>http://prowss.com/blog/2009/07/monitoring/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 03:25:36 +0000</pubDate>
		<dc:creator>SR</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rras]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://rras.wordpress.com/?p=7</guid>
		<description><![CDATA[So I went ahead and wrote my own monitor system in Rails. 1 day of work I got it working - very extensible and also fits my choice of technologies for best fit with RRAS.]]></description>
			<content:encoded><![CDATA[<div id="attachment_9" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-9" title="Monitor" src="http://rras.files.wordpress.com/2009/07/monitor.jpg?w=300" alt="Screenshot" width="300" height="185" /><p class="wp-caption-text">Screenshot</p></div>
<p>Working with one of the projects I&#8217;ve had very unpleasant experience trying to figure out which one of a little over 10 services is not working.</p>
<p>I didn&#8217;t want to go out an look for solution since recently I&#8217;ve done similar research and wasn&#8217;t amazed by any solutions out there. Some of them cost money too. So I went ahead and wrote my own monitor system in Rails. 1 day of work I got it working &#8211; very extensible and also fits my choice of technologies for best fit with RRAS.</p>
<p>515 lines of code and it went in &#8220;production&#8221; (I deployed and set it up on the server).</p>
<p><span id="more-7"></span>I definitely see some room for improvement there, but it is up in running in the way it is right now with 2 working monitors (URLMonitor and ProcessMonitor). Few words about them:</p>
<ul>
<li>URL Monitor allow to do simple URL check and match results with a regexp</li>
</ul>
<ul>
<li>Process Monitor take a PID file path a input and perform some system checks to records CPU and RAM used as well as it reports errors if the PID file is missing or the process isn&#8217;t running. I can use it to monitor literraly any Linux service including mysql and mongrel.</li>
</ul>
<p>So at this point it is pretty basic but we also have some JMX enabled Java servers on our service list , so I am going to keep working to get some stats reported  from those . SQL monitor and script monitors are in the way to.</p>
<p>Hey one thing I forgot to mention I do have graphs implemented so it displays metrics visually. Unfortunately I can&#8217;t show it here because at this point I don&#8217;t have that much data for display.</p>
<p>That&#8217;s all I had to say. Welcome to use and contribute to the project. It is hosted at github http://github.com/rras/rras-monitor/tree/master .  You can follow the updates to the server on our company twitter @prowss .</p>
<p>Bye</p>
]]></content:encoded>
			<wfw:commentRss>http://prowss.com/blog/2009/07/monitoring/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RRAS Blog Started</title>
		<link>http://prowss.com/blog/2009/02/rras-blog-started/</link>
		<comments>http://prowss.com/blog/2009/02/rras-blog-started/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 18:40:07 +0000</pubDate>
		<dc:creator>SR</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rras]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://rras.wordpress.com/?p=3</guid>
		<description><![CDATA[I&#8217;ve started this blog to show some progress on Ruby application server development. Right now I am planning to develop it in my spare time so the progress mostly on the weekends.
Few major goals I am going to be aiming for.
1) Easy mesh-ups
Building Ruby on Rails web sites I noticed that something it is difficult [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started this blog to show some progress on Ruby application server development. Right now I am planning to develop it in my spare time so the progress mostly on the weekends.</p>
<p>Few major goals I am going to be aiming for.</p>
<p><strong>1) Easy mesh-ups</strong></p>
<p>Building Ruby on Rails web sites I noticed that something it is difficult to mesh projects up &#8211; say take a forum (Beast or RForum) , glue it to your own application and then for example add Radiant or another CMS.  It is very frustrating since the software is there  for you but you can&#8217;t just say &#8220;I want Beast and Radiant to work together with my application&#8221;. So one of the main goals is going to provide that easiness.</p>
<p><strong><span id="more-5"></span>2) Deployment</strong></p>
<p>I&#8217;d love to streamline the deployments. Upload zipped application, run tests, deploy &#8211; just clicking mouse. Additionally sometimes you hit a bug after deployment and you want to rollback &#8211; that makes your fingers hurt typing &#8211; database, backup files. I am going to simplify rollback routine too.</p>
<p><strong>3) Performance testing / management</strong></p>
<p>Rails is not so much fun to watch in production. Logs are pretty boring so what I&#8217;d like to do is have few Mongrels running in more verbose mode so we can see some stats and monitor it.</p>
<p><strong>4) Clustering </strong></p>
<p>Want to do some cool things with clustering &#8211; some smart load balancing &#8211; rules to be able to use your models and determine what cluster segment it is going to go . Many people disagree but I would love to have 10% of my users (I can decide who) to use new user interface and report issues before complete rollout. It would be fun to implement.</p>
<p><strong>Implementation</strong></p>
<p>Ultimately I&#8217;d like to implement nifty and yet robust application server for Ruby on Rails applications. The server is going to  be built on the top of Mongrel. I am not planning to integrate Mongrel very deep just much as I need to provide some cool extras on the top of standard Mongrel distribution.  There will be very tight OS integration to streamline security and integration with other products. <strong>Extensibility</strong> &#8230; the server will be extensible by plugins so you can add additional monitoring and deployment tools. Each of a few plugins will be running in a separate Mongrel instance to avoid interruption for the main server in case of a crash or a bug.</p>
<p>Lastly the <strong>project location and licensing</strong>. Right now the project is hosted at GitHub <a title="http://github.com/rras/rras/tree/master" href="http://github.com/rras/rras/tree/master">http://github.com/rras/rras/tree/master</a> . It is open source and licenses under AGPL (Affero GPL). The most evil open source license I could imagine. Right now I can&#8217;t make a call how big the project is going to be, how much interest will it get neither what I want to get from it . So I am just covering my a*s before I can decide. One thing I will definitely try to avoid is reselling the code as an commercial application server not paying me back for my work &#8211; so MIT or LGPL is not very likely to happen unless somebody makes big enough donation.</p>
]]></content:encoded>
			<wfw:commentRss>http://prowss.com/blog/2009/02/rras-blog-started/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
