summaryrefslogtreecommitdiff
path: root/PROTOCOL
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-12-06 09:36:51 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-12-06 09:36:51 +0100
commite0f029c56de1393d9a01bc511beb19ab8c76a432 (patch)
tree8a17e2280ff5fbe14da35a46d94f15895715698f /PROTOCOL
parente0fbaf3a2ec1defbf0b21a7f07217f7a508b51fa (diff)
downloadbiruda-e0f029c56de1393d9a01bc511beb19ab8c76a432.tar.gz
biruda-e0f029c56de1393d9a01bc511beb19ab8c76a432.tar.bz2
some docu update
Diffstat (limited to 'PROTOCOL')
-rw-r--r--PROTOCOL15
1 files changed, 13 insertions, 2 deletions
diff --git a/PROTOCOL b/PROTOCOL
index 14b0691..e5519d9 100644
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -49,11 +49,22 @@ The coordinators also send all known workers to the master as a list:
Coordinator operations:
-----------------------
+The master can start and stop workers:
+
{ "op": "start", "rule": "master", "worker": "worker1" }
{ "op": "stop", "rule": "master", "worker": "worker1" }
-{ "op": "kill", "rule": "master", "worker": "worker1" }
The master sends this as survey call to all coordinators, the coordinator
who feels responsible for this working with start/stop/kill the worker
-with the given name.
+with the given name. Then it sends back an ack message to the master:
+
+{ "op": "stopped", "role": "coordinator", "host": "eeepc", "worker": "worker1", "found": true }
+
+Worker messages:
+----------------
+
+Workers send their output and states to the master via a data channel
+(PIPELINE):
+
+{ "op": "output", "role": "worker", "worker": "worker1", "msg": "Msg 30\n", "stdout": false }