Hello,<br><br>First the specs:<br>ruby 1.8.6, rails 1.2.3, ferret 0.11.4, mongrel 1.0.1, mongrel_cluster 0.2.1<br><br>And the model's aaf config:<br> # Ferret search engine<br> acts_as_ferret({:fields => {:name => {:boost => 10},
<br> :summary => {:boost => 2},<br> :body => {:boost => 1, :store => :no},<br> :question => {:boost => 1, :store => :no},
<br> :answer => {:boost => 1, :store => :no},<br> :status_id => {:boost => 1},<br> :category_id => {:boost => 1},
<br> :published => {:boost => 1}},<br> :store_class_name => true, <br> :remote => true,<br> :ferret => { :analyzer => Ferret::Analysis::
StandardAnalyzer.new([]) }<br> } )<br> <br><br>I've been wrestling with a very strange intermittent problem for a few days now. I'm running 3 mongrels behind an Apache 2.2 proxy balancer, and the aaf DRb server in production mode. I've been manually load testing a search where the query string contains a string, and also filter by fields category_id and status_id. I change the category or status and re-submit the search several times.
<br><br>After some random number of searches, if I send a search that should return some number of results, it will return no results on 1 or 2 of the mongrels, but the correct results on the remaining mongrel(s). So it's like this: refresh - no results, refresh - no results, refresh - 2 results, over & over in that pattern. Once this state has occurred, if I restart the DRb server, all will be well until I rapidly submit several more queries enough times to make this happen again.
<br><br>I have tested this both on our RedHat-based staging server and my local OSX dev machine with the same exact config, and I get the same results. Through logging I have confirmed that the same query is received by all the mongrels. To factor out browser-related issues, I've also tested by hitting the web server with a little looping ruby script, and it also breaks that way.
<br><br>I'm not sure where to debug from here -- can anyone point me in the right direction? Since a restart of the DRb server fixes the problem for a bit, I'm thinking it may be aaf related, but I don't know how to isolate this any further so as to determine the exact cause.
<br><br>Thanks,<br><br>Doug<br><br><br><br>