Skip to contentSkip to conversation

README.dev: Some words on what is needed when updating the daemons.

PATCH In review Ian Campbell 2 participants 3 messages Sep 17, 2015 – Sep 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 README.dev: Some words on what is needed when updating the daemons.

---
 README.dev | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
README.dev +53 -0
index 4df7237..b5344d7 100644
@@ -165,6 +165,59 @@ $HOME/testing.git/$xenbranch.stop
 
   stops everything using $xenbranch
 
+Updating daemons
+================
+
+osstest relies on two daemons for resource planning and allocation
+(mainly of hosts):
+
+- ms-ownerdaemon:
+- ms-queuedaemon:
+
+THese are typically run as respawning entries in inittab fom the
+$HOME/daemons-testing.git directory. A job typically interacts with
+these via ts-hosts-allocate-Executive and individuals via mg-allocate
+or mg-blockage.
+
+In addition ms-planner in this directory is used by ms-queuedaemon to
+produce the actual resource plan.
+
+These daemons are not automatically updated and so this must be done
+by hand by running git commands in the $HOME/daemons-testing.git
+directory. When doing so some special consideration is required
+depending on what is being updated:
+
+- ms-planner
+
+    In general no special requirements. If the interface between
+    ms-planner and ms-queuedaemon has changed then care may be needed
+    (but restarting the queuedaemon to pickup that half of the change
+    will suffice, see next).
+
+- ms-queuedaemon
+
+    Requires restarting. It is sufficient to simply kill the
+    ms-queuedaemon process. It will be restarted via inittab and all
+    existing jobs will be unaffected -- although they will need to
+    reenter the plan. Jobs which have an actual allocation are not
+    clients of the queuedaemon and are therefore not affected.
+
+- ms-ownerdaemon
+
+    Requires restarting. This cannot be done while any jobs are in
+    progress. Don't forget about people who run jobs somewhere other
+    than on the controller VM, such as their workstation).
+
+    If the ownerdaemon is restarted while jobs are running then they
+    need to be hunted down and killed manually and then cleared using
+    mg-hosts previoustasks (see below).
+
+- tcl/*
+
+    These libraries are used by both ms-queuedameon and
+    ms-ownerdaemon, updates here typically require restarting one of
+    both of those daemons.
+
 After restarting ms-ownerdaemon
 ===============================
 
Signature · 1 line
2.5.1
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] README.dev: Some words on what is needed when updating the daemons."):

README.dev $HOME/testing.git/$xenbranch.stop · line 209

Quoted 5 lines

+- ms-ownerdaemon

README.dev +4 -0
+
+    Requires restarting. This cannot be done while any jobs are in
+    progress. Don't forget about people who run jobs somewhere other
+    than on the controller VM, such as their workstation).

Spurious ).

But, anyway,

#2 lore raw
Quoted 9 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] README.dev: Some words on what is needed when updating the daemons."):

README.dev $HOME/testing.git/$xenbranch.stop · line 209

Quoted 5 lines

+- ms-ownerdaemon

README.dev +4 -0
+
+    Requires restarting. This cannot be done while any jobs are in
+    progress. Don't forget about people who run jobs somewhere other
+    than on the controller VM, such as their workstation).

Spurious ).

Fighting my (programmer's?) urge to overuse ()s.

(Note to self: English is not lisp (dammit I've done it again!))

Quoted 3 lines

But, anyway,

Thanks!