在 Rails 应用程序中监视 Workling 实例的方法
我目前正在 Rails 应用程序上使用 Workling with Starling。虽然我喜欢Workling,但我发现它很难监控。
更糟糕的是,我有几个 Workling 实例。 Workling 正在运行,并且 :multiple 设置为“true”(在 workling_client 内)。
我可以看到每个实例的 pid 等,但我想知道它们是否确实在做一些工作,并查明我是否需要运行更多(甚至更少)的实例。
你们有什么工具、黑客或任何可以帮助我解决这个问题的建议吗?
I'm currently using Workling with Starling on a rails app. Although I like Workling, I find it kinda hard to monitor.
To make matters worse, I have a couple of Workling instances. Workling is running with the :multiple set to 'true' (inside workling_client).
I can see the pid for each instance and such, but I want to know if they're actually doing some work, and find out if I need more (or even less) instances running.
Do you guys have any suggestions of tools, hacks or anything that could help me on this one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我用 monit 监控 Workling。它为您提供任何给定时间点的 CPU%。如果你想看看他们随着时间的推移有多少负载,那么你可以使用 Munin,因为我相信它可以通过一些插件为你提供一些图表,可以告诉你一些关于你正在监控的内容。抱歉,我无法更具体,因为我没有使用过 Munin。
I monitor Workling with monit. It gives you CPU% at any given point in time. If you want to have a look how much load they have had over time then you could use Munin instead as I believe it can give you some graphs via some plugins to it that can tell you a number of things about what you are monitoring. Sorry I can't be more specific as I haven't used Munin.