Вопрос

I am using starling as a queue server in my rails application. so each time i want to call worker method, I have to start starling and workling client from console.

Is there a way where as soon as the passenger is started my workling and starling both get auto started Or preciously when i will call the worker method then only my worling instance will get created.

Это было полезно?

Решение

I start up my workling and starling processes in one call using the "god" gem. It also allows you to setup CPU and memory thresholds. You might find it useful.

http://railscasts.com/episodes/130-monitoring-with-god

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top