Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change way Mailboxes are create, stored, and destroyed
[simgrid.git] / examples / c / cloud-masterworker / cloud-masterworker.tesh
1 #!/usr/bin/env tesh
2
3 p Testing the Cloud API with a simple master/workers
4
5 $ ${bindir:=.}/c-cloud-masterworker --log=no_loc ${platfdir}/cluster_backbone.xml
6 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] # Launch 2 VMs
7 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] create VM00 on PM(node-1.simgrid.org)
8 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] put an actor (WRK00) on VM00
9 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] create VM01 on PM(node-10.simgrid.org)
10 > [VM00:WRK00:(2) 0.000000] [cloud_masterworker/INFO] WRK00 is listening on mailbox(MBOX:WRK00)
11 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] put an actor (WRK01) on VM01
12 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] # Send to 2 worker actors
13 > [VM01:WRK01:(3) 0.000000] [cloud_masterworker/INFO] WRK01 is listening on mailbox(MBOX:WRK01)
14 > [node-0.simgrid.org:master:(1) 0.000000] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK00)
15 > [VM00:WRK00:(2) 0.090280] [cloud_masterworker/INFO] WRK00 received from mailbox(MBOX:WRK00)
16 > [node-0.simgrid.org:master:(1) 0.090280] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK01)
17 > [VM00:WRK00:(2) 0.100280] [cloud_masterworker/INFO] WRK00 executed
18 > [VM01:WRK01:(3) 0.180560] [cloud_masterworker/INFO] WRK01 received from mailbox(MBOX:WRK01)
19 > [node-0.simgrid.org:master:(1) 0.180560] [cloud_masterworker/INFO] # Suspend all VMs
20 > [node-0.simgrid.org:master:(1) 0.180560] [cloud_masterworker/INFO] suspend VM00
21 > [node-0.simgrid.org:master:(1) 0.180560] [cloud_masterworker/INFO] suspend VM01
22 > [node-0.simgrid.org:master:(1) 0.180560] [cloud_masterworker/INFO] # Wait a while
23 > [node-0.simgrid.org:master:(1) 2.180560] [cloud_masterworker/INFO] # Resume all VMs
24 > [node-0.simgrid.org:master:(1) 2.180560] [cloud_masterworker/INFO] # Sleep long enough for everyone to be done with previous batch of work
25 > [VM01:WRK01:(3) 2.190560] [cloud_masterworker/INFO] WRK01 executed
26 > [node-0.simgrid.org:master:(1) 10.000000] [cloud_masterworker/INFO] # Add one more actor on each VM
27 > [node-0.simgrid.org:master:(1) 10.000000] [cloud_masterworker/INFO] put an actor (WRK02) on VM00
28 > [node-0.simgrid.org:master:(1) 10.000000] [cloud_masterworker/INFO] put an actor (WRK03) on VM01
29 > [VM00:WRK02:(4) 10.000000] [cloud_masterworker/INFO] WRK02 is listening on mailbox(MBOX:WRK02)
30 > [node-0.simgrid.org:master:(1) 10.000000] [cloud_masterworker/INFO] # Send to 4 worker actors
31 > [VM01:WRK03:(5) 10.000000] [cloud_masterworker/INFO] WRK03 is listening on mailbox(MBOX:WRK03)
32 > [node-0.simgrid.org:master:(1) 10.000000] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK00)
33 > [VM00:WRK00:(2) 10.090280] [cloud_masterworker/INFO] WRK00 received from mailbox(MBOX:WRK00)
34 > [node-0.simgrid.org:master:(1) 10.090280] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK01)
35 > [VM00:WRK00:(2) 10.100280] [cloud_masterworker/INFO] WRK00 executed
36 > [VM01:WRK01:(3) 10.180560] [cloud_masterworker/INFO] WRK01 received from mailbox(MBOX:WRK01)
37 > [node-0.simgrid.org:master:(1) 10.180560] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK02)
38 > [VM01:WRK01:(3) 10.190560] [cloud_masterworker/INFO] WRK01 executed
39 > [VM00:WRK02:(4) 10.270841] [cloud_masterworker/INFO] WRK02 received from mailbox(MBOX:WRK02)
40 > [node-0.simgrid.org:master:(1) 10.270841] [cloud_masterworker/INFO] Send to mailbox(MBOX:WRK03)
41 > [VM00:WRK02:(4) 10.280841] [cloud_masterworker/INFO] WRK02 executed
42 > [VM01:WRK03:(5) 10.361121] [cloud_masterworker/INFO] WRK03 received from mailbox(MBOX:WRK03)
43 > [node-0.simgrid.org:master:(1) 10.361121] [cloud_masterworker/INFO] # Migrate all VMs to PM(node-1.simgrid.org)
44 > [VM01:WRK03:(5) 10.371121] [cloud_masterworker/INFO] WRK03 executed
45 > [node-0.simgrid.org:master:(1) 28.561942] [cloud_masterworker/INFO] # Migrate all VMs to PM(node-10.simgrid.org)
46 > [node-0.simgrid.org:master:(1) 46.319984] [cloud_masterworker/INFO] # Shutdown the half of worker actors gracefully. The remaining half will be forcibly killed.
47 > [VM00:WRK00:(2) 46.327790] [cloud_masterworker/INFO] WRK00 received from mailbox(MBOX:WRK00)
48 > [VM01:WRK01:(3) 46.335596] [cloud_masterworker/INFO] WRK01 received from mailbox(MBOX:WRK01)
49 > [node-0.simgrid.org:master:(1) 46.335596] [cloud_masterworker/INFO] # Wait a while before effective shutdown.
50 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] # Shutdown and destroy all the VMs. The remaining worker actors will be forcibly killed.
51 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] shutdown VM00
52 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] destroy VM00
53 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] shutdown VM01
54 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] destroy VM01
55 > [node-0.simgrid.org:master:(1) 48.335596] [cloud_masterworker/INFO] # Goodbye now!
56 > [48.335596] [cloud_masterworker/INFO] Bye (simulation time 48.3356)