X Tutup
Skip to content

How to execute workflows in multiple datacenters? #536

@likecoder

Description

@likecoder

3 datacenters.

dc0:1 host with 2 vms, vm0-vm1
dc1:1 host with 3 vms, vm2-vm4
dc2:1 host with 2 vms, vm5-vm6

20 cloudlets. I submitted the tasks all at once, in ascending order of their Task IDs. The allocation of cloudlets is as follows:

vm0->2 5 8 15 18 
vm1->3 14 
vm2->1 
vm3->0 7 12 13 
vm4->4 6 10 16 17 19 
vm5->11 
vm6->9 

The cloudlet dependencies are shown in the figure below.

Image

As can be seen from the console output log, the execution is blocked. It looks like only some of the tasks were executed, and I don't know how to solve this problem.

Image

For each cloudlet, I have ensured that its ReceiveTasks are added before its ExecutionTasks, and its SendTasks are added after its ExecutionTasks. However, the order among the ReceiveTasks themselves is non-deterministic, and the order among the SendTasks is also non-deterministic.

I'm wondering if the order of adding ReceiveTasks affects their execution, and whether multiple datacenters need to be connected with a network topology. What should I do to get the simulation to run correctly? I would greatly appreciate it if you could help me with this issue.

The complete log output is as follows:

INFO  Automatically enabling computation of utilization statistics for VMs on Host 0 could not be performed because it doesn't have VMs yet. You need to enable it for each VM created.
INFO  Automatically enabling computation of utilization statistics for VMs on Host 1 could not be performed because it doesn't have VMs yet. You need to enable it for each VM created.
INFO  Automatically enabling computation of utilization statistics for VMs on Host 2 could not be performed because it doesn't have VMs yet. You need to enable it for each VM created.
INFO  
================== Starting CloudSim Plus 8.5.1 ==================

INFO  0.00: #Datacenter 1 is starting...
INFO  org.cloudsimplus.network.switches.EdgeSwitch@2d6c620b is starting...
INFO  0.00: #Datacenter 3 is starting...
INFO  org.cloudsimplus.network.switches.EdgeSwitch@2d6c6281 is starting...
INFO  0.00: #Datacenter 5 is starting...
INFO  org.cloudsimplus.network.switches.EdgeSwitch@2d6c62f7 is starting...
INFO  Broker 7 is starting...
INFO  Entities started.
INFO  0.00: DatacenterBrokerSimple7: List of 3 datacenters(s) received.
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 0 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 1 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 2 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 3 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 4 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 5 inside #Datacenter 1
INFO  0.00: DatacenterBrokerSimple7: Trying to create Vm 6 inside #Datacenter 1
INFO  0.00: NetworkHost: Vm 0 is booting up right away in Host 0/#DC 1, since no startup delay (boot time) was set.
INFO  0.00: VmAllocationPolicySimple: Vm 0 has been allocated to Host 0/#DC 1
INFO  0.00: NetworkHost: Vm 1 is booting up right away in Host 0/#DC 1, since no startup delay (boot time) was set.
INFO  0.00: VmAllocationPolicySimple: Vm 1 has been allocated to Host 0/#DC 1
WARN  0.00: VmAllocationPolicySimple: No suitable host found for Vm 2 in #Datacenter 1
WARN  0.00: VmAllocationPolicySimple: No suitable host found for Vm 3 in #Datacenter 1
WARN  0.00: VmAllocationPolicySimple: No suitable host found for Vm 4 in #Datacenter 1
WARN  0.00: VmAllocationPolicySimple: No suitable host found for Vm 5 in #Datacenter 1
WARN  0.00: VmAllocationPolicySimple: No suitable host found for Vm 6 in #Datacenter 1
INFO  0.10: DatacenterBrokerSimple7: Trying to create Vm 2 inside #Datacenter 3
INFO  0.10: DatacenterBrokerSimple7: Trying to create Vm 3 inside #Datacenter 3
INFO  0.10: DatacenterBrokerSimple7: Trying to create Vm 4 inside #Datacenter 3
INFO  0.10: DatacenterBrokerSimple7: Trying to create Vm 5 inside #Datacenter 3
INFO  0.10: DatacenterBrokerSimple7: Trying to create Vm 6 inside #Datacenter 3
INFO  0.10: NetworkHost: Vm 2 is booting up right away in Host 1/#DC 3, since no startup delay (boot time) was set.
INFO  0.10: VmAllocationPolicySimple: Vm 2 has been allocated to Host 1/#DC 3
INFO  0.10: NetworkHost: Vm 3 is booting up right away in Host 1/#DC 3, since no startup delay (boot time) was set.
INFO  0.10: VmAllocationPolicySimple: Vm 3 has been allocated to Host 1/#DC 3
INFO  0.10: NetworkHost: Vm 4 is booting up right away in Host 1/#DC 3, since no startup delay (boot time) was set.
INFO  0.10: VmAllocationPolicySimple: Vm 4 has been allocated to Host 1/#DC 3
WARN  0.10: VmAllocationPolicySimple: No suitable host found for Vm 5 in #Datacenter 3
WARN  0.10: VmAllocationPolicySimple: No suitable host found for Vm 6 in #Datacenter 3
INFO  0.20: DatacenterBrokerSimple7: Trying to create Vm 5 inside #Datacenter 5
INFO  0.20: DatacenterBrokerSimple7: Trying to create Vm 6 inside #Datacenter 5
INFO  0.20: NetworkHost: Vm 5 is booting up right away in Host 2/#DC 5, since no startup delay (boot time) was set.
INFO  0.20: VmAllocationPolicySimple: Vm 5 has been allocated to Host 2/#DC 5
INFO  0.20: NetworkHost: Vm 6 is booting up right away in Host 2/#DC 5, since no startup delay (boot time) was set.
INFO  0.20: VmAllocationPolicySimple: Vm 6 has been allocated to Host 2/#DC 5
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 0 to Vm 3 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 1 to Vm 2 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 2 to Vm 0 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 3 to Vm 1 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 4 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 5 to Vm 0 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 6 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 7 to Vm 3 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 8 to Vm 0 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 9 to Vm 6 inside Host 2/#DC 5.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 10 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 11 to Vm 5 inside Host 2/#DC 5.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 12 to Vm 3 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 13 to Vm 3 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 14 to Vm 1 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 15 to Vm 0 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 16 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 17 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 18 to Vm 0 inside Host 0/#DC 1.
INFO  0.30: DatacenterBrokerSimple7: Sending Cloudlet 19 to Vm 4 inside Host 1/#DC 3.
INFO  0.30: DatacenterBrokerSimple7: All 20 waiting Cloudlets submitted to some VM.
INFO  142.31: DatacenterBrokerSimple7: Cloudlet 1 finished in Vm 2 and returned to broker.
INFO  144.40: NetworkVm: Requesting Vm 2 destruction on Host 1/#DC 3. Shutdown will finish immediately (since no Vm shutDownDelay was set).
INFO  144.40: #Datacenter 3: Vm 2 destroyed on Host 1/#DC 3. 
INFO  162.21: DatacenterBrokerSimple7: Cloudlet 0 finished in Vm 3 and returned to broker.
INFO  200.40: DatacenterBrokerSimple7: Cloudlet 2 finished in Vm 0 and returned to broker.
INFO  302.32: DatacenterBrokerSimple7: Cloudlet 4 finished in Vm 4 and returned to broker.
INFO  382.43: DatacenterBrokerSimple7: Cloudlet 7 finished in Vm 3 and returned to broker.
INFO  480.61: DatacenterBrokerSimple7: Cloudlet 3 finished in Vm 1 and returned to broker.
INFO  640.72: DatacenterBrokerSimple7: Cloudlet 5 finished in Vm 0 and returned to broker.
INFO  640.72: DatacenterBrokerSimple7: Cloudlet 14 finished in Vm 1 and returned to broker.
INFO  642.72: NetworkVm: Requesting Vm 1 destruction on Host 0/#DC 1. Shutdown will finish immediately (since no Vm shutDownDelay was set).
INFO  642.72: #Datacenter 1: Vm 1 destroyed on Host 0/#DC 1. 
INFO  1242.54: DatacenterBrokerSimple7: Cloudlet 6 finished in Vm 4 and returned to broker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup