Dynamic threshold in VerticalVmCpuScalingExample

33 views
Skip to first unread message

Sarah Ali

unread,
Apr 27, 2018, 5:09:53 AM4/27/18
to CloudSim Plus
Greetings

How to implement a dynamic threshold autoscaling in VerticalVmCpuScalingExample. Is there any built-in method that provides a dynamic threshold.

Manoel Campos

unread,
Apr 27, 2018, 11:15:47 AM4/27/18
to clouds...@googlegroups.com
Some VmAllocationPolicy implementations in the package org.cloudbus.cloudsim.allocationpolicies.migration, computes dynamic threshold based on some metrics such as Median Absolute Deviation (MAD) and Local Regression (LR). 
They use host utilization history to compute such metrics to define a dynamic threshold. Check the VmAllocationPolicyMigrationMedianAbsoluteDeviation for example (the method computeHostUtilizationMeasure).

You can use the Vm.getUtilizationHistory() to get the CPU utilization history for a given VM. Check the method documentation for details.



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


 about.me

On Fri, Apr 27, 2018 at 6:09 AM, Sarah Ali <sarah.al...@gmail.com> wrote:
Greetings

How to implement a dynamic threshold autoscaling in VerticalVmCpuScalingExample. Is there any built-in method that provides a dynamic threshold.

--
If you received an answer that worked for you, please be kind and reply to let everybody knows it worked.
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/60362df2-5d0b-4042-9e80-15662261fdec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sarah Ali

unread,
Apr 28, 2018, 7:38:25 AM4/28/18
to CloudSim Plus
Hello,
would you please help on implementing this method in this VerticalVmCpuScalingExample or LoadBalancerByHorizontalVmScalingExample. I've been trying to mimic MigrationExample1 to get the utilization history of the VM but I couldn't apply it.


On Friday, April 27, 2018 at 6:15:47 PM UTC+3, Manoel Campos wrote:
Some VmAllocationPolicy implementations in the package org.cloudbus.cloudsim.allocationpolicies.migration, computes dynamic threshold based on some metrics such as Median Absolute Deviation (MAD) and Local Regression (LR). 
They use host utilization history to compute such metrics to define a dynamic threshold. Check the VmAllocationPolicyMigrationMedianAbsoluteDeviation for example (the method computeHostUtilizationMeasure).

You can use the Vm.getUtilizationHistory() to get the CPU utilization history for a given VM. Check the method documentation for details.



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


 about.me

On Fri, Apr 27, 2018 at 6:09 AM, Sarah Ali <sarah.al...@gmail.com> wrote:
Greetings

How to implement a dynamic threshold autoscaling in VerticalVmCpuScalingExample. Is there any built-in method that provides a dynamic threshold.

--
If you received an answer that worked for you, please be kind and reply to let everybody knows it worked.
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-plu...@googlegroups.com.

Manoel Campos

unread,
Apr 28, 2018, 6:33:49 PM4/28/18
to clouds...@googlegroups.com
Defining a dynamic threshold is very simple.
Check the new VerticalVmCpuScalingDynamicThreshold and its upperCpuUtilizationThreshold method.

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


 about.me

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.

Sarah Ali

unread,
Apr 28, 2018, 8:33:59 PM4/28/18
to CloudSim Plus
Thank you, but there is no such a class (VerticalVmCpuScalingDynamicThreshold)

Sarah Ali

unread,
Apr 28, 2018, 10:38:00 PM4/28/18
to CloudSim Plus
I'm getting this error after I deleted the old project and upload the most recent one.

Manoel Campos

unread,
Apr 28, 2018, 11:38:52 PM4/28/18
to clouds...@googlegroups.com
Download it again (I've just updated) and execute mvn clean install at the CloudSim Plus root folder every time you download a new version.

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


 about.me

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.

Sarah Ali

unread,
Apr 29, 2018, 1:30:55 AM4/29/18
to CloudSim Plus
Still the same error

Manoel Campos

unread,
Apr 29, 2018, 2:39:42 AM4/29/18
to clouds...@googlegroups.com
You're not inside the project's root directory.

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


 about.me

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.

Sarah Ali

unread,
Apr 29, 2018, 2:40:51 AM4/29/18
to clouds...@googlegroups.com
It’s working now. Thank you very much

--
If you received an answer that worked for you, please be kind and reply to let everybody knows it worked.
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-plu...@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
Reply all
Reply to author
Forward
0 new messages