GridSim Resource Failures Examples
September 2007
Contents
Failure Example 1
This example shows a basic topology with 1 user, 3 resources and 1 GIS.
All of them are connected by a router.
List of input files:
- README.txt :
Instruction or README file.
-
ResFailureEx01.java : Main Java source code.
-
GridUserFailureEx01.java : A grid user, who will send gridlets to
a resource. He/she will monitor the resource and will detect any resource
failures affecting the machines running his/her gridlets.
-
network_ex01.txt : Network topology used in the example.
-
GridletSubmission.java : This class is just a wrapper to denote
whether this gridlet has been already submitted or not.
List of output files:
- output.txt :
Output of this experiment.
-
Ex01_Regional_GIS : Log file of the regional GIS entity.
- Ex01_Res_1 :
Log file of Resource_1 (there will be one file for each of
the three resources).
- Ex01_User0 :
Contains one line for each event regarding to the gridlets.
These events are the sending/reception of a gridlet, and
each line include the status of the gridlet, time and resource.
-
Ex01_User0_Fin : Contains one line for each gridlet,
showing the resource where it has been executed, its cost,
CPU time and total latency.
Failure Example 2
This example shows a more complicated topology with 20 users, 6 resources
and 1 RegionalGIS entity. All of them are connected by a router.
List of input files:
- README.txt :
Instruction or README file.
-
ResFailureEx02.java : Main Java source code.
-
GridUserFailureEx02.java : A grid user, who will send gridlets to
a resource. He/she will monitor the resource and will detect any resource
failures affecting the machines running his/her gridlets.
-
network_ex02.txt : Network topology used in the example.
-
GridletSubmission.java : This class is just a wrapper to denote
whether this gridlet has been already submitted or not.
List of output files:
- output.txt :
Output of this experiment.
-
Ex02_Regional_GIS : Log file of the regional GIS entity.
- Ex02_Res_0 :
Log file of Resource_0 (there will be one file for each of
the six resources).
- Ex02_User_0 :
Contains one line for each event regarding to the gridlets.
These events are the sending/reception of a gridlet, and
each line include the status of the gridlet, time and resource.
Then, when a simulation ends, this file shows the resource
a Gridlet has been executed, its cost, CPU time and total latency.
Failure Example 3
This example shows a more complicated topology with 30 users, 15 resources
and 3 RegionalGIS entities. All of them are connected by a router.
There are 3 VOs in this example: users and resources are chosen to each VO
randomly. Users can only use resources from the same VO, i.e.
registered to the same RegionalGIS.
List of input files:
- README.txt :
Instruction or README file.
-
ResFailureEx03.java : Main Java source code.
-
GridUserFailureEx03.java : A grid user, who will send gridlets to
a resource. He/she will monitor the resource and will detect any resource
failures affecting the machines running his/her gridlets.
-
network_ex03.txt : Network topology used in the example.
-
GridletSubmission.java : This class is just a wrapper to denote
whether this gridlet has been already submitted or not.
List of output files:
- output.txt :
Output of this experiment.
-
Ex03_Regional_GIS : Log file of Regional_GIS_0 entity.
- Ex03_Res_2 :
Log file of Resource_2.
- Ex03_User_0 :
Contains one line for each event regarding to the gridlets.
These events are the sending/reception of a gridlet, and
each line include the status of the gridlet, time and resource.
Then, when a simulation ends, this file shows the resource
a Gridlet has been executed, its cost, CPU time and total latency.
Back to Example index