From e0f029c56de1393d9a01bc511beb19ab8c76a432 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 6 Dec 2014 09:36:51 +0100 Subject: some docu update --- PROTOCOL | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'PROTOCOL') 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 } -- cgit v1.2.3-54-g00ecf