Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create monitoring listener #1

Open
Frank-G opened this issue May 23, 2018 · 0 comments
Open

Create monitoring listener #1

Frank-G opened this issue May 23, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Frank-G
Copy link

Frank-G commented May 23, 2018

For each monitor, we need a monitoring listener, that is able to reflect the current state of tasks, nodes, etc. on to the respective monitoring agents, and keeps track of changing entities and keep the state to the monitoring agent synchronous.

Monitoring listener algorithm (first draft):

  1. Persist the model in a database (or keep it implicitely through the current state in visor)
  2. Send response to the monitoring messages to the Kafka queue (Protobuff)
  3. Set a listener to the messages of the respective targets (newJob, newProcess, deleteProcess, etc.)
  4. For each existing target (not necessary if you use historic data of the queue, instead of latest state - CAUTION: creating the latest view on the system based on historic messages can be complex):
    a) instrument Visor
  5. For each listener:
    a) receive messages
    b) filter relevant messages
    c) change db (if not implicit view is chosen)
    d) instrument visor -> error? -- retry logic = Taskqueue - ExecutionService
    e) go to a)
@Frank-G Frank-G added the enhancement New feature or request label May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants