Files | Admin

Notes:

Release Name: mongrel_cluster-1.0.2

Notes:
*  The cluster::start, stop and restart commands now support—clean. On start, any orphaned pid_files will be removed and any missing members will be started. Running members will be ignored. On stop, orphaned members (with missing pids) will be killed. On restart,—clean will be passed to stop and start. Feel the healing power of the pack!

* cluster::status – Reports the status of the cluster members with respect to pid_file and the existence of the process. Returns 0 if ok, 2 if not.

* —only PORT – run a command only a specific port.

* Capistrano – added variables for the mongrel_rails path, pid_file, log_file, clean, and a task for status.

* The init.d script (resources/mongrel_cluster) will now create /var/run/mongrel_cluster and chown to a defined user on start (see file). To fully use this feature, update your cluster yml files to store the pidfile in /var/run/mongrel_cluster. This will support cleaning up orphaned pidfiles at boot time. For example: pid_file: /var/run/mongrel_cluster/foo.pid


Changes: * Each mongrel_rails process now has its own log file. * Improved parsing of log_file and pid_file filenames to support ”.” in the names. * start/stop messages for each port * Fixed a parameter bug with mongrel_cluster_ctl calling mongrel_rails. * Default pid_file is now “tmp/pids/mongrel.pid” to match Rails rake tasks. NOTE: I recommend using /var/run/mongrel_cluster so pids are properly cleaned up after a crash. * -S/--script is now passed to 'mongrel_rails start' * You can specify the path to mongrel_rails in capistrano to deal with PATH issues.