subtasks, monitors the progress of the subtasks, and restartsthe subtasks that fail.It consists of the following steps:1)
The MS divides a given task into a sequence of subtasks and allocates the subtasks to the local clusterheads (CH).2)
The CH finds the available processing power andaverage mobility on the local machines and thendistributes the subtasks over these machines.3)
The CHs gather the completed subtasks from the localmachines and then send the data back to the MS.4)
The MS aggregates the completed subtasks and thenstores the results in its own database, and5)
MS also sends back the results to the application of the respective users.
B. Mobility Metric
User Range is a given fact about the initiator coverage, inwhich user can communicate with mobile devices. AverageMobility, a derived parameter, represents the average mobilityof a resource and/or user (based on user and resourcemobility). Average mobility is calculated based on two recentcommunications between user/initiator and resource withrespect to the user/initiator.Average Mobility is calculated as21
f f Mobility Average
−=
(1)Where, 1
f
and 2
f
are the first history and second historyrespectively. The history is simply the distance between userand resource and it can be calculated by finding differencebetween the two recent interactions.
Ptime
shows the predicted time for resource availabilitywithin the user’s range and is calculated by the followingequation
Ptime
= (User Range – Distance) / Average Mobility (2)The “Distance” is the net difference between the newlocations of user and resource.
C. Resource Availability Metric
The monitoring agents (MA) estimates the workload of itsgrid nodes ),,2,1,(
k in
i
L
=
present in the cluster CL
1
usingthe following formula:
ik j jii
Power JobsizeCWLWL
+=
∑
=
1
(3)Where
i
CWL
is the current workload of
i
n
,
i
WL
is thework load of
i
n
i
Power
is the power of the node
i
n
and
j
Jobsize
is thesize of the
j
Job
.
D. Scheduling Strategy
After estimating the
Ptime
and
WL
values, the MA sendsthese values to its cluster head
1
CH
.
The
1
CH
then schedulesthe jobs if their grid node satisfies the following condition
ThWLPtime If
>
) / ( (4)where
Th
is a threshold value (which can be fixed basedon the job request).From 4, we can observe that if the
Ptime
is less and if thework load is more then the gird nodes are unable to executethe job request. Therefore, the jobs are executed by the nodesonly when
Ptime
is high and the work load is low. If the CHis unable to allocate the resources in its cluster, it resubmitsthe job request information to the MS.
E. Functions of HRAA
Figure 1. Functions of HRAA
The sequence of operations in HRAA is shown in Figure. 1. Inthis figure, the arrows represent the communication messagesand the nodes represent the agents/servers. The sequence is asfollows.1)
The MAs of each node in the local cluster send theresource status information to the CHs.2)
The CHs send this information to the MS.3)
The MS then create a database which containsinformation about the status and the price of eachresource.4)
A user submits its job details and the resourcerequirements to the MS.5)
The MS sends the job request information to the localCH.6)
The local CH allocates the resources in their controldepending on the predicted time, the averageprocessing power and average load of its localmachines
(IJCSIS) International Journal of Computer Science and Information Security,Vol. 8, No. 5, August 20108http://sites.google.com/site/ijcsis/ISSN 1947-5500