Skip to content

Create monitoring listener #1

Open
@Frank-G

Description

@Frank-G

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)

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions