Sha256: cf0096bf3cbed6892937311b0c91bf77e17a4dd2c1d26c77db3e37640ce8aa39

Contents?: true

Size: 1023 Bytes

Versions: 18

Compression:

Stored size: 1023 Bytes

Contents

# monit configuration snippet to watch the Ferret DRb server shipped with
# acts_as_ferret
check process ferret with pidfile /path/to/ferret.pid

    # username is the user the drb server should be running as (It's good practice
    # to run such services as a non-privileged user)
    start program = "/bin/su -c 'cd /path/to/your/app/current/ && script/ferret_server -e production start' username"
    stop program = "/bin/su -c 'cd /path/to/your/app/current/ && script/ferret_server -e production stop' username"

    # cpu usage boundaries
    if cpu > 60% for 2 cycles then alert
    if cpu > 90% for 5 cycles then restart

    # memory usage varies with index size and usage scenarios, so check how
    # much memory your DRb server uses up usually and add some spare to that
    # before enabling this rule:
    # if totalmem > 50.0 MB for 5 cycles then restart

    # adjust port numbers according to your setup:
    if failed port 9010 then alert
    if failed port 9010 for 2 cycles then restart
    group ferret

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
cehoffman-acts_as_ferret-0.4.4 doc/monit-example
jkraemer-acts_as_ferret-0.4.4 doc/monit-example
acts_as_ferret-0.5.4 doc/monit-example
acts_as_ferret-0.5.3 doc/monit-example
watson-acts_as_ferret-0.4.8.2 doc/monit-example
acts_as_ferret-0.5.2 doc/monit-example
acts_as_ferret-0.4.8.2 doc/monit-example
sdsykes_acts_as_ferret-0.4.3.1 doc/monit-example
acts_as_ferret-0.4.8.1 doc/monit-example
acts_as_ferret-0.5.1 doc/monit-example
acts_as_ferret-0.5 doc/monit-example
acts_as_ferret-0.4.8.rails3 doc/monit-example
acts_as_ferret-0.4.8 doc/monit-example
acts_as_ferret-0.4.7 doc/monit-example
acts_as_ferret-0.4.6 doc/monit-example
acts_as_ferret-0.4.3 doc/monit-example
acts_as_ferret-0.4.2 doc/monit-example
acts_as_ferret-0.4.4 doc/monit-example