Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
807 stars 488 forks source link

Difficulties with ContainerCloudSim. Pls help #119

Open Kenan13 opened 6 years ago

Kenan13 commented 6 years ago

we are B.Sc. software engineering students from the university of Stuttgart, Germany. We are currently doing some research and try to simulate a sock shop (https://github.com/microservices-demo/microservices-demo) with ContainerCloudSim.

Unfortunately, we encountered some difficulties during our simulation trials. In our scenario we have one Host, one VM and 13 Containers. We are unsure about the number of Cloudlets we have to choose. If we override the ExampleConstant class, the simulation only allocates one container to our one VM. For the rest there is “no suitable VM found for Container#X”. We cannot find the suitable lines which would allow us to allocate all our 13 Containers to our one and only VM.

Moreover, we do not truly comprehend the relationship between a Container, a Cloudlets and a VM. In the ContainerCloudSimExample1 you provide the following lines:

cloudletList = createContainerCloudletList(brokerId, SockShopConstants.NUMBER_CLOUDLETS);

containerList = createContainerList(brokerId, SockShopConstants.NUMBER_CLOUDLETS);

vmList = createVmList(brokerId, SockShopConstants.NUMBER_VMS);

why does the containerList gets the size of the cloudlets and the number of containers there is.

Question to ConstantExamples in ContainerExamples.

You initialize the VM_TYPE as 4. You define four VM attributes in MIPS, PES, etc.. But why do you initialize 25 VM at the bottom with NUMBER_VMS? Do the 25 VM randomly get one of the array parameters?

How do you determine the correct number of MIPS for a CPU? We simulate on consumer hardware and really don’t know how to calculate these Numbers, as they are extremely task dependent. Is there a rule of thumb or smth. else?

We uploaded our questions to a google cloudsim group, but still no response to any of the questions. We would be very grateful if you could help us Sir.

With best regards, Daniel, Martin, and Kanan

itconsultore commented 6 years ago

I have done simulations with CloudSim but only with VMs (without containers)

According to http://www.cloudbus.org/cloudsim/container.html it should be similar, like another layer. A cloudlet runs in a container and a container is allocated in a VM.

See the types of hosts, VMs and containers ( https://github.com/Cloudslab/cloudsim/blob/master/modules/cloudsim-examples/src/main/java/org/cloudbus/cloudsim/examples/container/ConstantsExamples.java )

if you have one host with 37274 MIPS and each VMs requires 18627 MIPS, then only two VMs could be possible to be allocated in that host. something similar would happen with the relationship VMs - container. If a container has 9320 Mips and one VM has 18627, then only one container is available for that VMs. (9320*2=18640 > 18627)

The real calculation should include the MIPS * PE (for hosts, vms and containers), so check each type. The ContainerDatacenterBroker is the one who decides to which container and VMs the cloudlet should be submitted.

Kind regards, Francisco

On Mon, Jun 11, 2018 at 12:26 PM, Kenan13 notifications@github.com wrote:

we are B.Sc. software engineering students from the university of Stuttgart, Germany. We are currently doing some research and try to simulate a sock shop (https://github.com/microservices-demo/ microservices-demo) with ContainerCloudSim.

Unfortunately, we encountered some difficulties during our simulation trials. In our scenario we have one Host, one VM and 13 Containers. We are unsure about the number of Cloudlets we have to choose. If we override the ExampleConstant class, the simulation only allocates one container to our one VM. For the rest there is “no suitable VM found for Container#X”. We cannot find the suitable lines which would allow us to allocate all our 13 Containers to our one and only VM.

Moreover, we do not truly comprehend the relationship between a Container, a Cloudlets and a VM. In the ContainerCloudSimExample1 you provide the following lines:

cloudletList = createContainerCloudletList(brokerId, SockShopConstants.NUMBER_CLOUDLETS);

containerList = createContainerList(brokerId, SockShopConstants.NUMBER_ CLOUDLETS);

vmList = createVmList(brokerId, SockShopConstants.NUMBER_VMS);

why does the containerList gets the size of the cloudlets and the number of containers there is.

Question to ConstantExamples in ContainerExamples.

You initialize the VM_TYPE as 4. You define four VM attributes in MIPS, PES, etc.. But why do you initialize 25 VM at the bottom with NUMBER_VMS? Do the 25 VM randomly get one of the array parameters?

How do you determine the correct number of MIPS for a CPU? We simulate on consumer hardware and really don’t know how to calculate these Numbers, as they are extremely task dependent. Is there a rule of thumb or smth. else?

We uploaded our questions to a google cloudsim group, but still no response to any of the questions. We would be very grateful if you could help us Sir.

With best regards, Daniel, Martin, and Kanan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Cloudslab/cloudsim/issues/119, or mute the thread https://github.com/notifications/unsubscribe-auth/AOnOzvjl5kFzXUq4GJ9mwm0vImSzkO0uks5t7lP6gaJpZM4UihXV .

scethiren commented 4 years ago

Hi, Kenan13, Got any solutions ??