GithubHelp home page GithubHelp logo

Worker heartbeat about qu HOT 4 OPEN

bkeepers avatar bkeepers commented on July 28, 2024
Worker heartbeat

from qu.

Comments (4)

jnunemaker avatar jnunemaker commented on July 28, 2024

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.

mauricio avatar mauricio commented on July 28, 2024

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.

jnunemaker avatar jnunemaker commented on July 28, 2024

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.

mauricio avatar mauricio commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.