Skip to content

Add an example creating Hosts and Cloudlets from Google traces - #47

Merged
manoelcampos merged 1 commit into
masterfrom
590-google-traces-joint-example
Nov 6, 2026
Merged

manoelcampos merged 1 commit into
masterfrom
590-google-traces-joint-example

Conversation

@manoelcampos

Copy link
Copy Markdown
Contributor

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

  • GoogleMachineAndTaskEventsExample1 is 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.csv is 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 an UPDATE line.
  • machine-events-sample-1.csv now has an UPDATE line, which GoogleMachineEventsExample1 shows as Host 20 having 7 cores instead of 5.
  • The TODOs in GoogleTaskEventsExample1 and GoogleMachineEventsExample1 are 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:

Example Result
GoogleMachineAndTaskEventsExample1 All 10 Cloudlets ran on the Hosts in the trace. 9 finished with SUCCESS and Cloudlet 22 has FAILED, as in the trace. Cloudlet 30 has no machine in the trace, so its broker selected a VM.
GoogleMachineEventsExample1 Host 20 has 7 cores. Other results are the same.
GoogleTaskEventsExample1 Finishes normally.

🤖 Generated with Claude Code

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]>
@manoelcampos manoelcampos self-assigned this Nov 6, 2026
@manoelcampos
manoelcampos merged commit e529cb2 into master Nov 6, 2026
1 of 2 checks passed
@manoelcampos
manoelcampos deleted the 590-google-traces-joint-example branch November 6, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant