Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 rails 应用程序中使用 starling 作为队列服务器。所以每次我想调用工作方法时,我都必须从控制台开始八哥和工作客户端。
有没有一种方法,一旦乘客启动,我的工作和八哥都会自动启动,或者当我调用 worker 方法时,只有我的工作实例会被创建。
我使用“上帝”宝石在一个电话中启动了我的工作和八哥流程。它还允许您设置 CPU 和内存阈值。你可能会发现它很有用。
http://railscasts.com/episodes/130-monitoring-with-god