horizantal and vertical vm scaling

25 views
Skip to first unread message

Muhammad Imran

unread,
Jun 29, 2022, 4:30:50 PM6/29/22
to CloudSim Plus: Cloud Simulation Framework
dear all, 

i have been trying to figure out the working of VerticalVMSPUScalingExample and Loadbalancerbyhorizantalvmscaling example. 
As for my understanding createListOfScalableVms,  and createVerticalPeScaling are the required method to understand for the implemented functionality. Checking the createVerticalPeScaling has few lines of code (almost self explainatory). 

however, i cannot figure out the working of cpu scaling in this example. Either, i dont understand the example or there is something missing. 
Executing the simple also dont display any message related to cpu scaling

can someone please guide me through this example step by step?



Prof. Manoel Campos

unread,
Aug 4, 2022, 10:16:15 AM8/4/22
to clouds...@googlegroups.com
Hello Muhammad,
I've update the LoadBalancerByHorizontalVmScalingExample to fix the issue. I have to take a look in the other one yet.

If you run the example, you will see some messages such as:

INFO  5.10: HorizontalVmScalingSimpleVm 0: Requesting creation of Vm 4 to receive new Cloudlets in order to balance load of Vm 0. 0 CPU usage is 100.0%

That shows the creation of new VMs to balance the load is working.

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


--
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: Cloud Simulation Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsimplus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsimplus/133277f8-a7b0-43aa-b490-15cdc7af562dn%40googlegroups.com.

Prof. Manoel Campos

unread,
Aug 4, 2022, 3:02:11 PM8/4/22
to clouds...@googlegroups.com
I've just updated the VerticalVmCpuScalingExample, refactoring, simplifying and cleaning up.
The up and down scaling is working fine.
Just check the logs such as below:

  Time    0.1: Vm 0 CPU Usage:   0.00% (14 vCPUs. Running Cloudlets: #0). RAM usage: 100.00% (1200 MB)
Time    2.1: Vm 0 CPU Usage:  14.29% (14 vCPUs. Running Cloudlets: #1). RAM usage: 100.00% (1200 MB)
Time    3.1: Vm 0 CPU Usage:   0.00% (13 vCPUs. Running Cloudlets: #1). RAM usage: 1.00% (12 MB)
Time    4.1: Vm 0 CPU Usage:   0.00% (12 vCPUs. Running Cloudlets: #2). RAM usage: 2.00% (24 MB)
Time    5.1: Vm 0 CPU Usage:   0.00% (11 vCPUs. Running Cloudlets: #2). RAM usage: 2.00% (24 MB)
Time    6.1: Vm 0 CPU Usage:  54.55% (11 vCPUs. Running Cloudlets: #3). RAM usage: 3.00% (36 MB)
Time    7.1: Vm 0 CPU Usage:  54.55% (11 vCPUs. Running Cloudlets: #3). RAM usage: 3.00% (36 MB)
Time    8.1: Vm 0 CPU Usage:  72.73% (11 vCPUs. Running Cloudlets: #4). RAM usage: 4.00% (48 MB)
Time    9.1: Vm 0 CPU Usage:  72.73% (11 vCPUs. Running Cloudlets: #4). RAM usage: 4.00% (48 MB)
Time   10.1: Vm 0 CPU Usage:   0.00% (13 vCPUs. Running Cloudlets: #5). RAM usage: 5.00% (60 MB)
Time   11.1: Vm 0 CPU Usage:  76.92% (13 vCPUs. Running Cloudlets: #5). RAM usage: 5.00% (60 MB)

They show how the number of virtual CPUs for VM 0 decreases (due to underload) and then starts increasing (due to overload).

Just update your examples repository and please take a second to give CloudSim Plus a star at https://github.com/cloudsimplus/cloudsimplus
Best regards,

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

Muhammad Imran

unread,
Sep 5, 2022, 4:14:24 AM9/5/22
to CloudSim Plus: Cloud Simulation Framework
Thank you for your help and support. i will certainly check the modified version of the code. 
Reply all
Reply to author
Forward
0 new messages