Comments (4)
I do not want this in the backend interface. It would be a new interface, say heartbeat, and would have its own methods to implement and specs to test adherence. This would allow people to use different heartbeat mechanisms with different queue backends.
from qu.
Isn't this better done the other way around?
You have a heartbeat process that pings someone every time it tries to consume from queue X, if there is a long time between pings or this someone stops receiving pings it would then notify you that something is wrong.
This someone could be CloudWatch (with alerts), PagerDuty, Scout or any other service that looks for this kind of stuff. This would even allow host monitoring, if the service at the other end is configured to handle every host it could maintain information about every host's status and and send notifications based on this.
Running separate resque processes to access queue health is rather cumbersome, I used to do it and it complicates the problem much more than solving it.
from qu.
I mostly put this as a reminder to myself. Should have documented what I meant more. I do not mean a separate process.
Heartbeat is not even the right term. More I see this as an interface for keeping track of what is happening with your workers in a way that could be show in a UI.
For example, some of the methods would be registering and unregistering workers. What job is a worker working on right now? Hope that makes more sense. Pretty unclear from the description above. Please read my mind in the future. Haha. :)
from qu.
Well, that's along the lines of what I thought as well, looks like my
mentat abilities are still functioning :P
Having this as a presence service for workers would definitely be nice.
Em sábado, 8 de fevereiro de 2014, John Nunemaker [email protected]
escreveu:
I mostly put this as a reminder to myself. Should have documented what I
meant more. I do not mean a separate process.Heartbeat is not even the right term. More I see this as an interface for
keeping track of what is happening with your workers in a way that could be
show in a UI.For example, some of the methods would be registering and unregistering
workers. What job is a worker working on right now? Hope that makes more
sense. Pretty unclear from the description above. Please read my mind in
the future. Haha. :)Reply to this email directly or view it on GitHubhttps://github.com//issues/80#issuecomment-34557015
.
Maurício Linhares
http://mauricio.github.io/ - http://twitter.com/#!/mauriciojr
from qu.
Related Issues (20)
- RabbitMQ vs Bunny HOT 3
- Docs don't match current release version? HOT 3
- jobs processed even when queue is not running HOT 6
- [HireFire] Extract a "working" worker's job's queue name HOT 3
- Question: How to handle completed jobs? Any callback? HOT 1
- Auto Redic/Mongo mount while rake spec HOT 1
- Failing test for Mongo backend HOT 1
- db_name must be a string or symbol HOT 6
- Daemonize qu:work HOT 1
- Current status of project HOT 6
- Backend should be notified of failures HOT 1
- Raise error if no queue given to worker HOT 1
- Jobs are currently retried until they succeed
- New gem release? HOT 1
- Move kestrel thrift stuff to its own gem HOT 1
- Release new version HOT 1
- Process payloads in batches HOT 6
- Allow backends to implement batch pop
- Allow backends to implement batch push HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qu.