Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

No Duplicate Polling #1558

Open
dishmael opened this issue Mar 17, 2017 · 6 comments
Open

No Duplicate Polling #1558

dishmael opened this issue Mar 17, 2017 · 6 comments

Comments

@dishmael
Copy link
Contributor

Not sure if this is a feature request or worthy of an RFC, but I think it is worthy of consideration/discussion.

Problem and Proposed Solution
Often, we have a need to gather metrics from a remote system from a centralized collector or, ideally, cluster (tribe) of snap collectors. In the latter architecture, I would want to define a single task to collect one or more metrics from a remote node; however, I do not want all the collectors to gather the same metric. Instead, I would want only one of the collectors in the cluster to gather that metric. This would be accomplished using a decentralized queue model leveraging a consensus algorithm (e.g. Raft - https://raft.github.io).

Use Case
At a configurable rate, the collectors would vote on which collector would be used to gather the metric(s) defined in a task shared amongst members in a tribe. Busy collectors would be naturally slower to respond and so faster, under/less utilized collectors would be selected for gathering those metrics.

@andrzej-k
Copy link
Contributor

@dishmael Thanks for submitting this feature proposal. It seems to resemble #773 a bit.
Would you be interested in preparing design/RFC for this feature or would you rather just use it when available?

@dishmael
Copy link
Contributor Author

I would be happy to contribute any way I can. I have never written an RFC before so would not know where to start.

@andrzej-k
Copy link
Contributor

Your problem statement looks like a good RFC, you can also check how we wrote RFCs in the past, for example #1522
What I would be more interested in is some description of design and implementation alternatives so we can gather opinions on how to implement this finally. Thanks for your involvement so far.

@dishmael
Copy link
Contributor Author

Sounds good! I'm traveling right now so will knock this out as soon as I get back.

@dishmael
Copy link
Contributor Author

dishmael commented Apr 4, 2017

Should probably change the title of this Issue to "No Duplicate Polling" so it is not confused with the RFC I created

@mbbroberg mbbroberg changed the title Clusters and Workers No Duplicate Polling Jun 12, 2017
@mbbroberg
Copy link
Contributor

I changed the title for you @dishmael 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants