Repository navigation
Add an example creating Hosts and Cloudlets from Google traces - #47
Merged
Merged
Conversation
Part of cloudsimplus/cloudsimplus#590. GoogleMachineAndTaskEventsExample1 creates Hosts from machine events and Cloudlets from task events, running each task in the Host given by the trace. It uses a new machine events sample, whose machine IDs match the task events sample. The machine events sample 1 now has an UPDATE event, and the TODOs in the existing Google examples are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of cloudsimplus/cloudsimplus#590. This is the last PR of that series.
Merge this after these PRs in the framework: cloudsimplus/cloudsimplus#635, cloudsimplus/cloudsimplus#636, cloudsimplus/cloudsimplus#637, cloudsimplus/cloudsimplus#638 and cloudsimplus/cloudsimplus#639. This code uses new methods from them, so it doesn't compile against the current framework
master.Changes
GoogleMachineAndTaskEventsExample1is new. It creates Hosts from machine events and Cloudlets from task events, and runs each task in the Host given by the trace. This is the joint example #590 asks for.machine-events-sample-2.csvis new. The existing machine sample uses IDs 10 to 60 and the task sample uses 0 to 3, so no task would match a Host. It also has anUPDATEline.machine-events-sample-1.csvnow has anUPDATEline, whichGoogleMachineEventsExample1shows as Host 20 having 7 cores instead of 5.GoogleTaskEventsExample1andGoogleMachineEventsExample1are removed, since those items are now done. One of them linked to issue #151, which is about something else.Decision to review
The example's VMs have a fixed size, rather than using the peak of the local disk requests. In the sample, the 2 users on machine 1 request 0.41 + 0.86 of the disk, which is more than the machine has, so the second VM was refused and its Cloudlets never ran. The example's comments explain that.
There are no breaking changes. There's also no impact on the framework's performance, since this PR only adds an example and sample data.
Tests
I merged the 5 framework PRs locally, installed the result and ran each example, with no exceptions:
GoogleMachineAndTaskEventsExample1SUCCESSand Cloudlet 22 hasFAILED, as in the trace. Cloudlet 30 has no machine in the trace, so its broker selected a VM.GoogleMachineEventsExample1GoogleTaskEventsExample1🤖 Generated with Claude Code