<?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>threehv &#187; monit</title>
	<atom:link href="http://www.3hv.co.uk/blog/tag/monit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3hv.co.uk/blog</link>
	<description>precision engineering for your website</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:18:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Note to self: rebuilding ferret indexes when using ferret server</title>
		<link>http://www.3hv.co.uk/blog/2009/05/26/note-to-self-rebuilding-ferret-indexes-when-using-ferret-server/</link>
		<comments>http://www.3hv.co.uk/blog/2009/05/26/note-to-self-rebuilding-ferret-indexes-when-using-ferret-server/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:10:44 +0000</pubDate>
		<dc:creator>Rahoul Baruah</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ferret]]></category>
		<category><![CDATA[monit]]></category>

		<guid isPermaLink="false">http://www.3hv.co.uk/blog/?p=537</guid>
		<description><![CDATA[For some reason ferret server on a site I have been managing has been giving me a load of grief. I seem to have nailed it down to two problems. Firstly, monit only seems to like monitoring ferret server under certain circumstances. Secondly, the ferret indexes don&#8217;t seem to like being rebuilt. The first one [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason ferret server on a site I have been managing has been giving me a load of grief.  </p>
<p>I seem to have nailed it down to two problems.  </p>
<p>Firstly, monit only seems to like monitoring ferret server under certain circumstances.  </p>
<p>Secondly, the ferret indexes don&#8217;t seem to like being rebuilt.  </p>
<p>The first one is weird &#8230; my monit config looks like this: </p>
<pre><code>
check process ferret with pidfile /home/rails/myapp/current/log/ferret.pid
  start program = "/home/rails/myapp/current/script/ferret_server -e production start"
  as uid rails and gid rails
  stop program  = "/home/rails/myapp/current/script/ferret_server -e production stop"
  as uid rails and gid rails
  group ferret
  if failed port 9010 type TCP then restart
  if 5 restarts within 5 cycles then timeout
</code></pre>
<p>But monit often says &#8220;not monitored&#8221;.  And completely fails to restart the server if it does go down.  </p>
<p>No solution to that as yet.  </p>
<p>The second problem is even weirder.  </p>
<p>If I stop the server, then rebuild the indexes (I have a custom rake task that rebuilds all the indexes for my app) and restart, every search crashes ferret.  </p>
<p>If I rebuild the indexes while the server is running, it appears to run fine.  Why?  I have absolutely no idea.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.3hv.co.uk/blog/2009/05/26/note-to-self-rebuilding-ferret-indexes-when-using-ferret-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.213 seconds -->

