Skip to content

Disable VM creation retry in CostsExample1 - #37

Merged
manoelcampos merged 3 commits into
masterfrom
fix/31-costs-example-infinite-loop
Oct 20, 2026
Merged

manoelcampos merged 3 commits into
masterfrom
fix/31-costs-example-infinite-loop

Conversation

@manoelcampos

@manoelcampos manoelcampos commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Relates to #31

The createBroker() Javadoc of CostsExample1 says VM creation retry is disabled, so that VMs that can't be placed are just added to the broker's failed VM list. However, the code never disabled it.

This PR:

  • Disables VM creation retry with broker.getVmCreation().setRetryDelay(-1), as the example describes.
  • Updates the example docs: with the current settings (4 hosts × 8 PEs, 6 VMs × 4 PEs), all VMs are created, so the class Javadoc no longer says some VMs won't be created.

The infinite loop reported in #31 was caused by a framework bug, fixed in cloudsimplus/cloudsimplus#577.

🤖 Generated with Claude Code

Closes #31

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manoelcampos and others added 2 commits October 20, 2026 05:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@manoelcampos manoelcampos changed the title Fix CostsExample1 infinite loop (#31) Disable VM creation retry in CostsExample1 Oct 20, 2026
@manoelcampos
manoelcampos merged commit 4fd58ee into master Oct 20, 2026
1 check failed
@manoelcampos
manoelcampos deleted the fix/31-costs-example-infinite-loop branch October 20, 2026 08:51
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