
200 Practical Workflow Applications
FIGURE 7.14: Scientific/multimedia workflow application for parallel pro-
cessing with migration of service between continents.
18 loa d [ $ i ]= ‘ ssh ${ nodes [ $ i ] } uptime | awk ’{ p r i n t $10 } ’ |
cu t −d ’ . ’ −f1 ‘
echo Load o f $ { nodes [ $ i ] } i s $ { l o a d [ $ i ] }
done
}
23
g e t l o a d o f c u r r e n t n o d e ( ) {
l o c a l r e t =‘ ss h compute−0−$cu r rent
nod e n umb e r uptime | awk
’{ p r i n t $10 } ’ | cut −d ’ . ’ −f 1 ‘
#update i n t h e arra y
loa d [ $ curren t nod e n umb e r ]= $ r e t
28 echo ” $ r e t ”