From: Chao J. <ch...@cs...> - 2007-10-23 07:44:17
|
Hi, Agustin My entities are created as following: 1) I changed the RegionalGISWithFailure class to make it can replay failures for GridResourceWithFailure from log. 2) I create a RegionalGISWithFailure and a SimpleLink as following Link link = new SimpleLink("rc_link", baud_rate, propDelay, mtu) RegionalGISWithFailure gis = new RegionalGISWithFailure("GIS", link, logFile); 3) I create GridResourceWithFailure, and call setRegionalGIS(gis) Do you think above details are enough? BTW: I read the examples for GridSimWithFailure, where no Gridsim.setGIS() is invoked. So I am not sure how I can let GridSim know which is GIS? Regards, Chao On Tue, 23 Oct 2007 09:30:05 +0200, Agustín Caminero Herraez wrote > Hi Chao, > > By now, I have no idea on what is happening. > > So, could you tell me how you create your entities? There may be > something wrong whit it. > > BTW, could you please include the mailing list in your emails? This > way, emails will be recorded, and anybody can use them in the future. > > Regards, > > Agustin > > Chao JIN escribió: > > Thanks for your response. > > > > Now I got an exception as follows: > > > > Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: -1 > > at java.util.ArrayList.get(Unknown Source) > > at eduni.simjava.Sim_system.send(Sim_system.java:600) > > at eduni.simjava.Sim_entity.sim_schedule(Sim_entity.java:342) > > at gridsim.net.SimpleLink.body(SimpleLink.java:204) > > at eduni.simjava.Sim_entity.run(Sim_entity.java:603) > > > > I think the reason is in the body() of SimpleLink, it tries > > GridSim.getGridInfoServiceEntityId(). > > > > Could you plz tell me if I need to specify the GridInfoService for > > GridSimWithFailure? or how can I solve above exception? > > > > Best, > > Chao > > On Fri, 19 Oct 2007 09:38:09 +0200, Agustín Caminero Herraez wrote > > > >> Hi Chao Jin, > >> > >> Chao JIN escribió: > >> > >>> Hi, > >>> > >>> I have a question. RegionalGISWithFailure needs a parameter of Link. How > >>> could I specify this parameter? > >>> > >>> > >> When you build the network topology, you must connect each entity > >> with a router via a link. This link is the parameter that you need > >> to create a RegionalGISWithFailure. If you take a look at the > >> resource failure examples, you will see that prior to the creation > >> of any entity, a link is created, and this link is used as a > >> parameter to create the entity. For example: > >> > >> Link link = new SimpleLink(gisName + "_link", baud_rate, > >> propDelay, mtu); > >> ... > >> RegionalGISWithFailure gis = new RegionalGISWithFailure(gisName, > >> link, failureNumResPattern, > >> failureTimePattern, > >> failureLengthPattern); > >> > >> In order to create the link, you just need the propagation delay, > >> MTU and speed of the link (in bits per second). > >> > >> > >>> I'd like to simulate a environemnt consisting one GridResourceIndex > >>> > > server > > > >>> and lots of machines, where machines may have frequent failures. The > >>> > > user > > > >>> query the GridResourceIndex server to get the current available > >>> > > machines, > > > >>> and then send tasks to machines. > >>> > >>> > >> That's how the RegionalGISWithFailure works. So, your > >> GridResourceIndex can be implemented as a RegionalGISWithFailure entity. > >> > >>> Could you plz tell me how to specify the link for above target > >>> > > simulation? > > > >>> One router is enough? > >>> > >>> > >> Sure, network topology does not affect your functionality. > >> You can have a network topology with one router, or with many of > >> them, it doesn't matter. > >> > >>> > >>> > >>> Thanks, > >>> > >>> > >> Anytime, > >> > >> Agustin > >> > >>> Chao Jin > >>> > >>> On Mon, 15 Oct 2007 11:41:25 +0200, Agustín Caminero Herraez wrote > >>> > >>> > >>>> Hi, > >>>> > >>>> Yes, you will have to modify RegionalGISWithFailure.java. > >>>> In this class, you must read the log files, and schedule the > >>>> fail/alive events based on them. > >>>> > >>>> Agustin > >>>> > >>>> Anthony Sulistio escribió: > >>>> > >>>> > >>>>> Agustin may tell you more about this. > >>>>> But, if you insist on reading from a trace file, > >>>>> then perhaps you need to modify the RegionalGISWithFailure.java, > >>>>> since this class is responsible for sending messages to > >>>>> resources for fail/alive. > >>>>> > >>>>> > >>>>> anthony > >>>>> > >>>>> > >>>>> On Mon, 15 Oct 2007, Chao JIN wrote: > >>>>> > >>>>> > >>>>> > >>>>>> hi, Anthony > >>>>>> > >>>>>> I am using GridSim to simulate a distributed environment with frequent > >>>>>> failures. I have the failure logs of some machines in a cluster, and > >>>>>> > > I'd > > > >>>>>> like to simulate failures according to these log files. > >>>>>> > >>>>>> I have found GridSim can simulate failures through some functions, > >>>>>> such as > >>>>>> HyperExponential, etc. However, this is not what I need. > >>>>>> > >>>>>> Do I have to add new modules over GridSim? or How could I do it in a > >>>>>> quicker > >>>>>> way? > >>>>>> > >>>>>> I am looking forward to your answers. > >>>>>> > >>>>>> BTW: I just went to your seat, but you were not there. > >>>>>> > >>>>>> Thanks, > >>>>>> > >>>>>> Chao > >>>>>> -- > >>>>>> > >>>>>> > >>>>>> > >>>> -- > >>>> ======================================================== > >>>> Agustin Caminero-Herraez > >>>> PhD Student > >>>> Computing Systems Department > >>>> The University of Castilla La Mancha, Albacete. Spain. > >>>> Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 > >>>> http://www.i3a.uclm.es/ > >>>> ======================================================== > >>>> > >>>> > >>> -- > >>> > >>> > >>> > >> -- > >> ======================================================== > >> Agustin Caminero-Herraez > >> PhD Student > >> Computing Systems Department > >> The University of Castilla La Mancha, Albacete. Spain. > >> Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 > >> http://www.i3a.uclm.es/ > >> ======================================================== > >> > > > > > > -- > > > > > > -- > ======================================================== > Agustin Caminero-Herraez > PhD Student > Computing Systems Department > The University of Castilla La Mancha, Albacete. Spain. > Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 > http://www.i3a.uclm.es/ > ======================================================== -- |