ryanlecompte / redis_failover

redis_failover is a ZooKeeper-based automatic master/slave failover solution for Ruby.
http://github.com/ryanlecompte/redis_failover
MIT License
539 stars 65 forks source link

Add informative procline #46

Open mperham opened 11 years ago

mperham commented 11 years ago

I'd like to be able to get very simple info out of redis_node_manager without having to do anything. I think the procline would be a great idea here:

Current procline:

/usr/local/rvm/rubies/ruby-1.9.3-p125/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p125/bin/redis_node_manager -c /opt/theclymb/shared/config/redis_node_manager_conf.yml -e production

Example:

redis_node_manager version=1.2.3 master=app-4.theclymb.com:6379

I'm not sold on the format, I was just thinking key=value pairs but anything is better than nothing. Sidekiq does this:

sidekiq 2.6.4 theclymb [0 of 10 busy]

Where 'theclymb' is the application tag associated with sidekiq so you can distinguish between sidekiqs for different rails apps on the same machine.