private void createVerticalVmScaling(Vm vm) {
VerticalVmScaling verticalScaling = new VerticalVmScalingSimple(Ram.class, 0.3);
verticalScaling.setOverloadPredicate(this::isVmRamOverloaded);
verticalScaling.setUnderloadPredicate(this::isVmRamUnderloaded);
vm.setRamVerticalScaling(verticalScaling);
}
and what I'm trying to achieve might look like this:
private void createVerticalVmScaling(Vm vm) {
VerticalVmScaling verticalScaling = new VerticalVmScalingSimple(PeSimple.class, 0.3);
verticalScaling.setOverloadPredicate(this::isVmCpuOverloaded);
verticalScaling.setUnderloadPredicate(this::isVmCpuUnderloaded);
vm.setPeVerticalScaling(verticalScaling); // Method Implementation Missing
}
Is this even the correct way of thinking? Am I missing something?
Thanks in advance.
Manoel Campos da Silva Filho Software Engineer
Computer Science and Engineering PhD Student at University of Beira Interior (Portugal)
Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)
http://manoelcampos.com
--
http://cloudsimplus.org
---
You received this message because you are subscribed to the Google Groups "CloudSim Plus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/5946cfac-be12-4746-9533-653c7901e797%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plu...@googlegroups.com.
Manoel Campos da Silva Filho Software Engineer
Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)
Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)
http://manoelcampos.com
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/540a1f80-20d3-404b-b3c5-1d35e0509bc5%40googlegroups.com.
Manoel Campos da Silva Filho Software Engineer
Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)
Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)
http://manoelcampos.com
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/83251b1a-d9f8-4ddd-b811-16cf2adfe0a4%40googlegroups.com.
--
http://cloudsimplus.org
---
You received this message because you are subscribed to the Google Groups "CloudSim Plus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/aa301c3f-128d-472d-94c1-7dc1d3fac50c%40googlegroups.com.
private double lowerCpuUtilizationThreshold(Vm vm) {
return 0.4;
}
...
private double upperCpuUtilizationThreshold(Vm vm) {
return 0.8;
}
20.10: DatacenterBrokerSimple2: CloudletSimple 6 received
Time 20.1: Vm 0 CPU Usage: 44.44% (18 vCPUs. Running Cloudlets: #5)
21.10: DatacenterBrokerSimple2: CloudletSimple 1 received
Time 21.1: Vm 0 CPU Usage: 35.29% (17 vCPUs. Running Cloudlets: #4)
22.10: DatacenterBrokerSimple2: CloudletSimple 2 received
Time 22.1: Vm 0 CPU Usage: 23.53% (17 vCPUs. Running Cloudlets: #3)
23.10: DatacenterBrokerSimple2: CloudletSimple 3 received
Time 23.1: Vm 0 CPU Usage: 11.76% (17 vCPUs. Running Cloudlets: #2)
24.10: DatacenterBrokerSimple2: CloudletSimple 5 received
Time 24.1: Vm 0 CPU Usage: 5.88% (17 vCPUs. Running Cloudlets: #1)
Time 25.1: Vm 0 CPU Usage: 5.88% (17 vCPUs. Running Cloudlets: #1)
Time 26.1: Vm 0 CPU Usage: 5.88% (17 vCPUs. Running Cloudlets: #1)
Manoel Campos da Silva Filho Software Engineer
Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)
Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)
http://manoelcampos.com
--
http://cloudsimplus.org
---
You received this message because you are subscribed to the Google Groups "CloudSim Plus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/d14df023-59a4-405f-b1ad-0d9a73495602%40googlegroups.com.
Manoel Campos da Silva Filho Software Engineer
Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)
Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)
http://manoelcampos.com