adding more cloudlets into a same broker on different times

901 views
Skip to first unread message

Alessandro Franci

unread,
Mar 9, 2011, 5:11:46 AM3/9/11
to clou...@googlegroups.com
Hello,
I'm doing a project based on CloudSim. I'm wondering if I can submit more cloudlets into a same broker at runtime: for example, I submit 3 cloudlets at instant 200 via broker number 3, then I would like to submit other 2 cloudlets at instant 1200 via the same broker number 3. Is it possible? How can I do this?

Thank you very much
--
Alessandro Franci +39 340 8888029 al...@the-root.org www.the-root.org

Rodrigo Calheiros

unread,
Mar 9, 2011, 5:37:16 PM3/9/11
to clou...@googlegroups.com
Dear Alessandro,

the Broker supplied is CloudSim package is intended to be an example.
It has only limited functionalities. By writing your own broker, you
can adjust its behavior according to your needs. For example, you can
implement a new broker that, instead of receiving a list of Cloudlets,
it receives a list containing <time, cloudlet> which the broker
interprets as the time to submit the Cloudlet.

Controlling the submission time then can be done by scheduling
internal broker events. Examples of such internal events where posted
previously in the list.

Regards,
Rodrigo

Jeyarani Rajarathinam

unread,
Mar 9, 2011, 6:03:12 PM3/9/11
to clou...@googlegroups.com
Hi,
I would like to have multiple brokers for a specific datacenter. How should i proceed? Suggest me some ideas.
 
 
With Thanks and Regards,
Jeyarani Rajarathinam,

Rodrigo Calheiros

unread,
Mar 9, 2011, 6:07:22 PM3/9/11
to clou...@googlegroups.com
Hi!

You only need to instantiate more Broker objects and supply to each of
them its own set of VMs and Cloudlets. If you want specific brokers
interacting with specific data centers, it should be passed to each
broker during its initialization.

Regards,
Rodrigo

Jeyarani Rajarathinam

unread,
Mar 9, 2011, 6:10:51 PM3/9/11
to clou...@googlegroups.com
Dear Sir,
  Thanks a lot.
 
 With Thanks and Regards,
Jeyarani Rajarathinam,



Umar

unread,
Apr 9, 2013, 12:33:13 AM4/9/13
to clou...@googlegroups.com
Hi Rodrigo,

I am trying to do a similar thing but with 3 brokers and 2 datacenters in the networking example 3 but I am getting the following error as the simulation runs.  The simulation finishes just fine but a couple of these errors still come up anyway.

Datacenter_0.processCloudletSubmit(): Exception error.
java
.lang.NullPointerException
    at org
.cloudbus.cloudsim.Datacenter.processCloudletSubmit(Datacenter.java:761)
    at org
.cloudbus.cloudsim.Datacenter.processEvent(Datacenter.java:159)
    at org
.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
    at org
.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:471)
    at org
.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:835)
    at org
.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:151)
    at org
.cloudbus.cloudsim.examples.network.NetworkExample3.main(NetworkExample3.java:226)
Datacenter_0.processCloudletSubmit(): Exception error.



I have made a post on this matter already with the modified example java file and the output.  Please could you take a look and let me know if you have a solution.  Thank you in advance.

https://groups.google.com/forum/?fromgroups=#!searchin/cloudsim/issue$20with$20more$20than$202$20brokers/cloudsim/v8Hh_cKg2GA/IgAVHoU7OWYJ




Regards,
Umar

kienlt

unread,
Apr 9, 2013, 4:39:38 AM4/9/13
to clou...@googlegroups.com
Hi Rodrigo,
 
 
At DatacenterBroker Class - Cloudets are submited to the VMs through submitCloudlets method. It seems that Broker only implement a task submit cloudlet. so, Broker don't know that cloudlet has submitted previously that has finished yet.
How to resolve this problem. Please let me some idea.
 
sorry for my english not so good.
 
Best regards.
 
Kienlt.

mehdi hosseini

unread,
Apr 9, 2013, 6:18:27 PM4/9/13
to clou...@googlegroups.com
you can find an example which i attach in a previous subject (new Broker,main test and inherited cloudlet class) 

Umar

unread,
Apr 9, 2013, 7:04:07 PM4/9/13
to clou...@googlegroups.com
Has anyone else run into the same problem as me when running more than 2 brokers?

n s

unread,
Aug 5, 2013, 11:37:34 AM8/5/13
to clou...@googlegroups.com
Hello 
I want to allocate each  virtual machine cluster to one  host.i had a problem with allocated a category of VMs .
In my own class I wrote :

private static List<Vm> vmList;

public static List<List<Vm>> vmarray = new ArrayList<List<Vm>>();

for(To  the number of categories){
     int numberVm=0;                        

   for (To the number of request each category){

         numberVm  ++;                      

  }                        

   vmList=createVmList(brokerId, numberVm);

   vmarray.add(vmList);                      

   broker.submitVmList(vmList);

                     
}

And change findHostForVm method in PowerVmAllocationPolicyMigrationAbstract and allocated each vm  category that there are in vmarray  to a host if this host had capacity .

 but the outputs is not correct.

Please help me what should i do? do I need to change the class broker?

What is wrong?

Thanks a lot

Mohamadreza Farahpour

unread,
Aug 22, 2013, 11:59:40 PM8/22/13
to clou...@googlegroups.com
salm
to zamine entekhab vm behine baraie submit shodan be cloudlet koja baid to data center broker taghir ijad konim

Caroline Namuwenje

unread,
Aug 23, 2013, 12:07:14 AM8/23/13
to cloudsim
Hello Mohamadreza,
here on cloudsim google groups we speak english
Kind Regards 


--
 
---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Caroline Namuwenje.
Msc Computer Networks.
13687599.

This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system.

The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.

Reply all
Reply to author
Forward
0 new messages