proposal of new messages and interactions between researcher and nodes
This is a proposal to add few "control" messages between the actors of fedbiomed (researcher, node...)
We focus, for the moment, to messages to/from researcher and nodes (in the future other actors may be also interactive) We assume that:
-
there is only one researcher
-
there are some nodes
-
there is no user control/roles (like admin, etc...) and security model associated at the moment
-
a node cannot discuss with another node (should be implemented later with our security model)
-
a logger is a "script" running on the same host than the researcher or on a node itself
-
node discovery (may be already implemented with ping/pong or can be implemented with status ??? )
- emitter: researcher, logger
- receiver: specific node, all nodes (broadcast)
- action: response message only
- response: node information ( node_id, etc... ip_adress ??)
-
data discovery:
- emitter: researcher, logger, (on node itself it is equivalent to "node start list", but on a running node and through mqtt)
- receiver: specific node, all nodes (broadcast)
- action: response message only
- response: list of all data tags that the node knows, information on each data (size, creation date, last use,...)
-
status:
- emitter: researcher, logger
- receiver: specific node, all nodes, researcher
- action: response message only
- response: what is it doing at the time (need to be raffined)
-
stop:
- emitter: researcher
- receiver: specific node, all nodes
- action: stop/kill the node(s)
- response: returns the status
-
reset:
- emitter: researcher
- receiver: specific node, all nodes
- action: stop the node(s), node restart from the beginning and are ready for a new experiment/taks, clean all internal data/variables
- response: returns the status
-
lastlog:
- emitter: researcher, logger
- receiver: specific node, researcher
- action: response message only
- response: "last N log messages" (N is given by the requester) or "messages since DATE" (DATE is given by the requester)
... to be extended ...