Enable simulation to keep running for a specific period of time #130
CloudSim Plus simulations are automatically finished when there is no more event to process.
Even though there is a
Detailed information about how the feature should work
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.
The text was updated successfully, but these errors were encountered:
- 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 <email@example.com>