You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloudSim Plus simulations are automatically finished when there is no more event to process.
However, sometimes we need to keep simulation running for a specific period of time, in order to wait for the dynamic arrival of events, such as the creation of Cloudlets and VMs in runtime.
Even though there is a terminateAt(double time) method to specify when the simulation should be finished, if the framework detects there is no more event to process, the simulation is finished anyway.
Detailed information about how the feature should work
The CloudSim class should be updated to enable setting a termination time using the mentioned method and keep the simulation running even if there is no event to process. In this case, it just keeps waiting for new events or for the termination time to be reached in order to terminate the simulation.
An example scenario where this feature should be used
We can create simulations that keep running for a defined time, enabling the dynamic creation of new objects such as Cloudlets and VMs, even after all Cloudlets in the entire simulation have finished. Using such a feature we can, for instance, create an application to simulate a cloud scenario running for 24 hours. Before this feature, the only way to accomplish that was to avoid the simulation to be idle. With this feature, the simulation may become idle anytime, and yet keep running until the termination time is reached.
A brief explanation of why you think this feature is useful
The feature will allow the creation of more realistic scenarios, mainly when the arrival of Cloudlets and VMs are defined randomly. In such a case, the developer doesn't know the arrival time of objects. Therefore, the only way to wait for such events is enabling the simulation to keep running even if it's idle.
- Postpone DatacenterBroker shutdown to the end of
the simulation when a termination time is set,
instead of as soon as all cloudlets finish.
This way, the broker waits for new Cloudlets
and VMs submitted during simulation runtime,
even if the broker is idle.
- Updates DatacenterBrokerSimple to request VM destroy during shutdown.
In situations such as when a simulation termination time is set,
the broker was kept alive to wait for new Cloudlets and VMs.
However, this was causing VM destruction to be ignored when
the broker was shutdown.
- Removes redundant broker attributes and methods.
- Improves information printed by DatacenterBroker.
- Removes unused code from DatacenterBrokerSimple
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
CloudSim Plus simulations are automatically finished when there is no more event to process.
However, sometimes we need to keep simulation running for a specific period of time, in order to wait for the dynamic arrival of events, such as the creation of Cloudlets and VMs in runtime.
Even though there is a
terminateAt(double time)
method to specify when the simulation should be finished, if the framework detects there is no more event to process, the simulation is finished anyway.Detailed information about how the feature should work
The
CloudSim
class should be updated to enable setting a termination time using the mentioned method and keep the simulation running even if there is no event to process. In this case, it just keeps waiting for new events or for the termination time to be reached in order to terminate the simulation.An example scenario where this feature should be used
We can create simulations that keep running for a defined time, enabling the dynamic creation of new objects such as Cloudlets and VMs, even after all Cloudlets in the entire simulation have finished. Using such a feature we can, for instance, create an application to simulate a cloud scenario running for 24 hours. Before this feature, the only way to accomplish that was to avoid the simulation to be idle. With this feature, the simulation may become idle anytime, and yet keep running until the termination time is reached.
A brief explanation of why you think this feature is useful
The feature will allow the creation of more realistic scenarios, mainly when the arrival of Cloudlets and VMs are defined randomly. In such a case, the developer doesn't know the arrival time of objects. Therefore, the only way to wait for such events is enabling the simulation to keep running even if it's idle.
Examples Included
The text was updated successfully, but these errors were encountered: