Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve the doc of MSG_task_*_bounded
[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 ${platfdir}/cluster.xml
6 > [node-0.acme.org:master:(1) 0.000000] [msg_test/INFO] # Launch 2 VMs
7 > [node-0.acme.org:master:(1) 0.000000] [msg_test/INFO] create VM00 on PM(node-1.acme.org)
8 > [node-0.acme.org: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 > [node-0.acme.org:master:(1) 0.000000] [msg_test/INFO] create VM01 on PM(node-10.acme.org)
11 > [node-0.acme.org: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 > [node-0.acme.org:master:(1) 0.000000] [msg_test/INFO] # Send a task to 2 worker process
14 > [node-0.acme.org:master:(1) 0.000000] [msg_test/INFO] Send task(Task00) to mailbox(MBOX:WRK00)
15 > [VM00:WRK00:(2) 0.090280] [msg_test/INFO] WRK00 received task(Task00) from mailbox(MBOX:WRK00)
16 > [node-0.acme.org:master:(1) 0.090280] [msg_test/INFO] Send task(Task01) to mailbox(MBOX:WRK01)
17 > [VM00:WRK00:(2) 0.100280] [msg_test/INFO] WRK00 executed task(Task00)
18 > [VM01:WRK01:(3) 0.180560] [msg_test/INFO] WRK01 received task(Task01) from mailbox(MBOX:WRK01)
19 > [node-0.acme.org:master:(1) 0.180560] [msg_test/INFO] # Suspend all VMs
20 > [node-0.acme.org:master:(1) 0.180560] [msg_test/INFO] suspend VM00
21 > [node-0.acme.org:master:(1) 0.180560] [msg_test/INFO] suspend VM01
22 > [node-0.acme.org:master:(1) 0.180560] [msg_test/INFO] # Wait a while
23 > [node-0.acme.org:master:(1) 2.180560] [msg_test/INFO] # Resume all VMs
24 > [node-0.acme.org:master:(1) 2.180560] [msg_test/INFO] # Sleep long enough for everyone to be done with previous batch of work
25 > [VM01:WRK01:(3) 2.190560] [msg_test/INFO] WRK01 executed task(Task01)
26 > [node-0.acme.org:master:(1) 10.000000] [msg_test/INFO] # Add one more process on each VM
27 > [node-0.acme.org:master:(1) 10.000000] [msg_test/INFO] put a process (WRK02) on VM00
28 > [VM00:WRK02:(4) 10.000000] [msg_test/INFO] WRK02 is listening on mailbox(MBOX:WRK02)
29 > [node-0.acme.org:master:(1) 10.000000] [msg_test/INFO] put a process (WRK03) on VM01
30 > [VM01:WRK03:(5) 10.000000] [msg_test/INFO] WRK03 is listening on mailbox(MBOX:WRK03)
31 > [node-0.acme.org:master:(1) 10.000000] [msg_test/INFO] # Send a task to 4 worker process
32 > [node-0.acme.org:master:(1) 10.000000] [msg_test/INFO] Send task(Task00) to mailbox(MBOX:WRK00)
33 > [VM00:WRK00:(2) 10.090280] [msg_test/INFO] WRK00 received task(Task00) from mailbox(MBOX:WRK00)
34 > [node-0.acme.org:master:(1) 10.090280] [msg_test/INFO] Send task(Task01) to mailbox(MBOX:WRK01)
35 > [VM00:WRK00:(2) 10.100280] [msg_test/INFO] WRK00 executed task(Task00)
36 > [VM01:WRK01:(3) 10.180560] [msg_test/INFO] WRK01 received task(Task01) from mailbox(MBOX:WRK01)
37 > [node-0.acme.org:master:(1) 10.180560] [msg_test/INFO] Send task(Task02) to mailbox(MBOX:WRK02)
38 > [VM01:WRK01:(3) 10.190560] [msg_test/INFO] WRK01 executed task(Task01)
39 > [VM00:WRK02:(4) 10.270841] [msg_test/INFO] WRK02 received task(Task02) from mailbox(MBOX:WRK02)
40 > [node-0.acme.org:master:(1) 10.270841] [msg_test/INFO] Send task(Task03) to mailbox(MBOX:WRK03)
41 > [VM00:WRK02:(4) 10.280841] [msg_test/INFO] WRK02 executed task(Task02)
42 > [VM01:WRK03:(5) 10.361121] [msg_test/INFO] WRK03 received task(Task03) from mailbox(MBOX:WRK03)
43 > [node-0.acme.org:master:(1) 10.361121] [msg_test/INFO] # Migrate all VMs to PM(node-1.acme.org)
44 > [node-1.acme.org:__pr_mig_tx:VM00(node-1.acme.org-node-1.acme.org):(7) 10.361121] [vm_live_migration/WARNING] use the default max_downtime value 30ms
45 > [VM01:WRK03:(5) 10.371121] [msg_test/INFO] WRK03 executed task(Task03)
46 > [node-10.acme.org:__pr_mig_tx:VM01(node-10.acme.org-node-1.acme.org):(9) 19.682922] [vm_live_migration/WARNING] use the default max_downtime value 30ms
47 > [node-0.acme.org:master:(1) 28.561942] [msg_test/INFO] # Migrate all VMs to PM(node-10.acme.org)
48 > [node-1.acme.org:__pr_mig_tx:VM00(node-1.acme.org-node-10.acme.org):(11) 28.561942] [vm_live_migration/WARNING] use the default max_downtime value 30ms
49 > [node-1.acme.org:__pr_mig_tx:VM01(node-1.acme.org-node-10.acme.org):(13) 37.440963] [vm_live_migration/WARNING] use the default max_downtime value 30ms
50 > [node-0.acme.org:master:(1) 46.319984] [msg_test/INFO] # Shutdown the half of worker processes gracefully. The remaining half will be forcibly killed.
51 > [VM00:WRK00:(2) 46.327790] [msg_test/INFO] WRK00 received task(finalize) from mailbox(MBOX:WRK00)
52 > [VM01:WRK01:(3) 46.335596] [msg_test/INFO] WRK01 received task(finalize) from mailbox(MBOX:WRK01)
53 > [node-0.acme.org:master:(1) 46.335596] [msg_test/INFO] # Wait a while before effective shutdown.
54 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] # Shutdown and destroy all the VMs. The remaining worker processes will be forcibly killed.
55 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] shutdown VM00
56 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] destroy VM00
57 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] shutdown VM01
58 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] destroy VM01
59 > [node-0.acme.org:master:(1) 48.335596] [msg_test/INFO] # Goodbye now!
60 > [48.335596] [msg_test/INFO] Bye (simulation time 48.3356)