summaryrefslogtreecommitdiff
path: root/PROTOCOL
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-23 19:49:11 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-23 19:49:11 +0100
commita784c8f795f60604a2cd6f9633a213e891e4d7df (patch)
tree2e115572d1bc28243237c5a525548b6a7206d7cd /PROTOCOL
parent7b6d970a87fbfc2079ba98a26c0b457cc8cd05ee (diff)
downloadbiruda-a784c8f795f60604a2cd6f9633a213e891e4d7df.tar.gz
biruda-a784c8f795f60604a2cd6f9633a213e891e4d7df.tar.bz2
got to POSTing the start command to the master, now we have to design the messaging below
Diffstat (limited to 'PROTOCOL')
-rw-r--r--PROTOCOL12
1 files changed, 12 insertions, 0 deletions
diff --git a/PROTOCOL b/PROTOCOL
index 35ed369..14b0691 100644
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -45,3 +45,15 @@ The coordinators also send all known workers to the master as a list:
{ "workers": { "name": "worker1", "mode": "direct", "command": "build.sh" }
{ "name": "worker2", "mode": "direct", "command": "build.sh" }
}
+
+Coordinator operations:
+-----------------------
+
+{ "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.
+