Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
94119926b0a3c3ce20750b5c875e8217ff06e3b8
[simgrid.git] / examples / msg / cloud-masterworker / cloud-masterworker.tesh
1 #! ./tesh
2
3 p Testing the Cloud API with a simple master/workers
4
5 $ $SG_TEST_EXENV ${bindir:=.}/cloud-masterworker$EXEEXT --log=no_loc ${srcdir:=.}/platform.xml
6 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] # Launch 2 VMs
7 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] create VM00 on PM(Intel)
8 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] put a process (WRK00) on VM00
9 > [VM00:WRK00:(2) 0.000000] [msg_test/INFO] WRK00 is listening on mailbox(MBOX:WRK00)
10 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] create VM01 on PM(Provost)
11 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] put a process (WRK01) on VM01
12 > [VM01:WRK01:(3) 0.000000] [msg_test/INFO] WRK01 is listening on mailbox(MBOX:WRK01)
13 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] # Send a task to 2 worker process
14 > [Jacquelin:master:(1) 0.000000] [msg_test/INFO] Send task(Task00) to mailbox(MBOX:WRK00)
15 > [VM00:WRK00:(2) 23.846402] [msg_test/INFO] WRK00 received task(Task00) from mailbox(MBOX:WRK00)
16 > [Jacquelin:master:(1) 23.846402] [msg_test/INFO] Send task(Task01) to mailbox(MBOX:WRK01)
17 > [VM00:WRK00:(2) 23.919218] [msg_test/INFO] WRK00 executed task(Task00)
18 > [VM01:WRK01:(3) 48.653760] [msg_test/INFO] WRK01 received task(Task01) from mailbox(MBOX:WRK01)
19 > [Jacquelin:master:(1) 48.653760] [msg_test/INFO] # Suspend all VMs
20 > [Jacquelin:master:(1) 48.653760] [msg_test/INFO] suspend VM00
21 > [Jacquelin:master:(1) 48.653760] [msg_test/INFO] suspend VM01
22 > [Jacquelin:master:(1) 48.653760] [msg_test/INFO] # Wait a while
23 > [Jacquelin:master:(1) 50.653760] [msg_test/INFO] # Resume all VMs
24 > [Jacquelin:master:(1) 50.653760] [msg_test/INFO] # Sleep long enough for everyone to be done with previous batch of work
25 > [VM01:WRK01:(3) 50.726576] [msg_test/INFO] WRK01 executed task(Task01)
26 > [Jacquelin:master:(1) 1000.000000] [msg_test/INFO] # Add one more process on each VM
27 > [Jacquelin:master:(1) 1000.000000] [msg_test/INFO] put a process (WRK02) on VM00
28 > [VM00:WRK02:(4) 1000.000000] [msg_test/INFO] WRK02 is listening on mailbox(MBOX:WRK02)
29 > [Jacquelin:master:(1) 1000.000000] [msg_test/INFO] put a process (WRK03) on VM01
30 > [VM01:WRK03:(5) 1000.000000] [msg_test/INFO] WRK03 is listening on mailbox(MBOX:WRK03)
31 > [Jacquelin:master:(1) 1000.000000] [msg_test/INFO] # Send a task to 4 worker process
32 > [Jacquelin:master:(1) 1000.000000] [msg_test/INFO] Send task(Task00) to mailbox(MBOX:WRK00)
33 > [VM00:WRK00:(2) 1023.846402] [msg_test/INFO] WRK00 received task(Task00) from mailbox(MBOX:WRK00)
34 > [Jacquelin:master:(1) 1023.846402] [msg_test/INFO] Send task(Task01) to mailbox(MBOX:WRK01)
35 > [VM00:WRK00:(2) 1023.919218] [msg_test/INFO] WRK00 executed task(Task00)
36 > [VM01:WRK01:(3) 1048.653760] [msg_test/INFO] WRK01 received task(Task01) from mailbox(MBOX:WRK01)
37 > [Jacquelin:master:(1) 1048.653760] [msg_test/INFO] Send task(Task02) to mailbox(MBOX:WRK02)
38 > [VM01:WRK01:(3) 1048.726576] [msg_test/INFO] WRK01 executed task(Task01)
39 > [VM00:WRK02:(4) 1072.500163] [msg_test/INFO] WRK02 received task(Task02) from mailbox(MBOX:WRK02)
40 > [Jacquelin:master:(1) 1072.500163] [msg_test/INFO] Send task(Task03) to mailbox(MBOX:WRK03)
41 > [VM00:WRK02:(4) 1072.572978] [msg_test/INFO] WRK02 executed task(Task02)
42 > [VM01:WRK03:(5) 1097.307521] [msg_test/INFO] WRK03 received task(Task03) from mailbox(MBOX:WRK03)
43 > [Jacquelin:master:(1) 1097.307521] [msg_test/INFO] # Migrate all VMs to PM(Intel)
44 > [Intel:__pr_mig_tx:VM00(Intel-Intel):(7) 1097.307521] [msg_vm/WARNING] use the default max_downtime value 30ms
45 > [VM01:WRK03:(5) 1097.380336] [msg_test/INFO] WRK03 executed task(Task03)
46 > [Provost:__pr_mig_tx:VM01(Provost-Intel):(9) 1100.382717] [msg_vm/WARNING] use the default max_downtime value 30ms
47 > [Jacquelin:master:(1) 3567.161124] [msg_test/INFO] # Migrate all VMs to PM(Provost)
48 > [Intel:__pr_mig_tx:VM00(Intel-Provost):(11) 3567.161124] [msg_vm/WARNING] use the default max_downtime value 30ms
49 > [Intel:__pr_mig_tx:VM01(Intel-Provost):(13) 6034.900487] [msg_vm/WARNING] use the default max_downtime value 30ms
50 > [Jacquelin:master:(1) 8502.639850] [msg_test/INFO] # Shutdown the half of worker processes gracefully. The remaining half will be forcibly killed.
51 > [VM00:WRK00:(2) 8504.519504] [msg_test/INFO] WRK00 received task(finalize) from mailbox(MBOX:WRK00)
52 > [VM01:WRK01:(3) 8506.399157] [msg_test/INFO] WRK01 received task(finalize) from mailbox(MBOX:WRK01)
53 > [Jacquelin:master:(1) 8506.399157] [msg_test/INFO] # Wait a while before effective shutdown.
54 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] # Shutdown and destroy all the VMs. The remaining worker processes will be forcibly killed.
55 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] shutdown VM00
56 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] destroy VM00
57 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] shutdown VM01
58 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] destroy VM01
59 > [Jacquelin:master:(1) 8508.399157] [msg_test/INFO] # Goodbye now!
60 > [8508.399157] [msg_test/INFO] Bye (simulation time 8508.4)