> I just double checked the README and I didn't see any mention of
> monit. Can you tell me what you're after here? Monit is a process
> monitoring server. If you are on dreamhost, you are probably running
> Lovd behind apache and phusion. If this is the case, monit is not
> required.

I mentioned monit as the lovd-by-less README references this page:

http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer which has a
section called "Use monit to monitor the DRb server"

http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer#UsemonittomonitortheDRbserver

Trying to start acts_as_ferret manually from my domains root directory
(RAILS_ROOT) gives me this:

[castiglia]$ script/ferret_server -e production start
starting ferret server...
Loaded suite script/ferret_server
Started

Finished in 0.000347 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

This is the part that I'm not understanding - The correct way to start/
stop the ferret server in production when it is run as a Drb process.
The doc
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer seems to be
running acts_as_ferret via the vendor/plugin directory and lovd uses
the gem.


I am deploying on Dreamhost using Apache, Rails 2.1.1, Passenger,
RubyGems 1.2, ruby 1.8.5. Obviously, I'm having difficulty setting up
acts_as_ferret properly as the existing documentation doesn't seem to
talk in detail about what's needed in config/environment.rb to
automatically start acts_as_ferret. Consequently, my app starts/runs
fine, but the Admin link which calls the 'search' method in the
Profile model throws a 'find_by_contents' error:


NoMethodError (undefined method `find_by_contents' for #<Class:
0x2ab9c33fb900>):
    /vendor/rails/activerecord/lib/active_record/base.rb:1618:in
`method_missing_without_paginate'
    /vendor/gems/will_paginate-2.2.2/lib/will_paginate/finder.rb:
164:in `method_missing'
    /app/models/profile.rb:188:in `search'
    /app/controllers/admin/users_controller.rb:39:in `search_results'


So I have commented out line 72 of profile.rb to start the app. I am
seeing this error in ferret_server.out

[castiglia]$ cat ferret_server.out

DRb::DRbConnError (druby://ferret.jazinc.com:9010 - #<SocketError:
getaddrinfo: Name or service not known>):

This druby connection error is where I'm stuck and google is not
really helping in this area.  I am running

[F] acts_as_ferret = 0.4.3
[F] ferret = 0.11.6

frozen in the vendor/gems directory, but many of the acts_as_ferret
docs online discuss the acts_as_ferret plugin (as I mentioned).  So I
can't get a clear handle on
what is needed to configure acts_as_ferret/ferret.

Thank you for for taking the time to respond to post (Sorry it got so
long).

Markus Arike




On Oct 12, 10:14 am, "Steven A Bristol" <[EMAIL PROTECTED]>
wrote:
> On Fri, Oct 10, 2008 at 4:27 PM, marike <[EMAIL PROTECTED]> wrote:
>
> > I keep reading posts saying that using long running processes like
> > acts_as_ferret on a shared host are a sure way to get kicked off as
> > they use too many resources.  As my website will likely be low volume,
> > is it possible to disable acts_as_ferret/ferret search indexing and
> > replace it with something like mysql indexing? Has anyone done this?
> > Or is there a solution that would be more shared host friendly?
>
> Acts_as_ferret should not be a long running process. The reason to use
> it is because it executes much faster, and uses fewer system
> resources, that running a similar sql querry. You can remove ferret
> from lovd, but  I don't think this is a good reason to do it.
>
> > Lastly, I've asked Dreamhost if they'd install monit for me so I can
> > run acts_as_ferret as a Drbserver as is recommended in the lovd-by-
> > less README, but I doubt that's gonna happen.
>
> I just double checked the README and I didn't see any mention of
> monit. Can you tell me what you're after here? Monit is a process
> monitoring server. If you are on dreamhost, you are probably running
> Lovd behind apache and phusion. If this is the case, monit is not
> required.
>
> cheers,
> steven bristol
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to