git.iko.soy/distributed-process
on master help sign in
Improve docs, relax bound on containers
commitc35ffe0733b8f123b9109db055362a4f225fb4c9 authorEdsko de Vries <edsko@edsko.net> dateTue 21 Aug 2012, 08:45 (14 years ago) parentceb7e5a
2 files changed+12−5
distributed-process-simplelocalnet/src/Control/Distributed/Process/Backend/SimpleLocalnet.hs+11−4 distributed-process/distributed-process.cabal+1−1
distributed-process-simplelocalnet/src/Control/Distributed/Process/Backend/SimpleLocalnet.hs+11−4
@@ -305,14 +305,21 @@ terminateAllSlaves backend = do
305305-- Master nodes
306306--------------------------------------------------------------------------------
307307
308−-- | 'startMaster' finds all slaves currently available on the local network
309−-- (which should therefore be started first), redirects all log messages to
310−-- itself, and then calls the specified process, passing the list of slaves
311−-- nodes.
308+-- | 'startMaster' finds all slaves /currently/ available on the local network,
309+-- redirects all log messages to itself, and then calls the specified process,
310+-- passing the list of slaves nodes.
312311--
313312-- Terminates when the specified process terminates. If you want to terminate
314313-- the slaves when the master terminates, you should manually call
315314-- 'terminateAllSlaves'.
315+--
316+-- If you start more slave nodes after having started the master node, you can
317+-- discover them with later calls to 'findSlaves', but be aware that you will
318+-- need to call 'redirectLogHere' to redirect their logs to the master node.
319+--
320+-- Note that you can use functionality of "SimpleLocalnet" directly (through
321+-- 'Backend'), instead of using 'startMaster'/'startSlave', if the master/slave
322+-- distinction does not suit your application.
316323startMaster :: Backend -> ([NodeId] -> Process ()) -> IO ()
317324startMaster backend proc = do
318325 node <- newLocalNode backend
distributed-process/distributed-process.cabal+1−1
@@ -42,7 +42,7 @@ Library
4242 mtl >= 2.0 && < 2.2,
4343 data-accessor >= 0.2 && < 0.3,
4444 bytestring >= 0.9 && < 0.11,
45− containers >= 0.4 && < 0.6,
45+ containers >= 0.5 && < 0.6,
4646 old-locale >= 1.0 && < 1.1,
4747 time >= 1.2 && < 1.5,
4848 random >= 1.0 && < 1.1,