Replies: 1 comment
-
@lFirsl I've encountered a similar issue #219 . Have you figured out the correct way to use the power package? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
So, as I'm still playing around with the Power suite (
PowerHost
,PowerDatacentre
,PowerVM
, etc) to get energy usage estimates, I've come across an issue - which I'm unsure whether is a bug or if I'm misusing the feature set, thus why I'm putting this in a Q&A instead of a issue.The Problem
While using
PowerDatacenter
,PowerHosts
andPowerVMs
, I've noticed that ALL of myPowerVMs
got deallocated by thePowerDatacenter
despite them having cloudlets submitted to them that are yet to be finished.Having investigated
PowerDatacenter
, I found this piece of code:cloudsim/modules/cloudsim/src/main/java/org/cloudbus/cloudsim/power/PowerDatacenter.java
Lines 234 to 241 in 9a414ff
I've pinpointed the issue to be with this line:
cloudsim/modules/cloudsim/src/main/java/org/cloudbus/cloudsim/power/PowerDatacenter.java
Line 236 in 9a414ff
Which has this definition:
cloudsim/modules/cloudsim/src/main/java/org/cloudbus/cloudsim/HostDynamicWorkload.java
Lines 140 to 160 in 9a414ff
My
PowerVMs
within thePowerHosts
seem to fall into this if statement:cloudsim/modules/cloudsim/src/main/java/org/cloudbus/cloudsim/HostDynamicWorkload.java
Lines 155 to 157 in 9a414ff
That is to say, the PowerVMs are counted as having "no guests". To my understanding, GuestEntities are primarily VMs and Containers - not cloudlets.
Out of curiosity, I've tried using just
PowerContainers
without usingPowerVMs
(so the containers got allocated toPowerHosts
directly). This seems to cause the opposite problem - no Container got deallocated despite having no cloudlets to work on - as thePowerDatacentre
only ever checks for completed VMs, not containers.Just to make it clear here, my understanding is that a (Power)VM or (Power)Container should only be deallocated once it runs out of CLOUDLETS to work on, which is not what seems to be happening here.
The Questions
Given the above, I'm wondering the following
PowerDatacenter
->PowerHost
->PowerVM
->PowerContainer
->Cloudlet
? That is to say, am I always meant to usePowerContainers
withinPowerVMs
? If so, how arePowerContainers
checked to be "done" if not via cloudlet completion?PowerVMs
be deallocated while they still have cloudlets assigned to them? Is this a bug or am I missing something here?Thank you for taking the time to answer my question! If this turns out to be a bug and not a misuse on my part, I am more than happy to open up another issue so we can keep track of it!
cc: @deRemo
Beta Was this translation helpful? Give feedback.
All reactions