Research Article

Virtual Machine Replica Placement Using a Multiobjective Genetic Algorithm

Algorithm 4

f(c): the performance degrading due to the PM hosting the replica is with lower capabilities.
Input: S, V
Output: Count
Count = 0
for i: = 0 to V − 1 do
PrimaryPM = S[i]
Replica = getReplicas (i)
for j: = 0 to length (Replica)−1 do
ReplicaIndex = Replica [j]
ReplicaPM = S[ReplicaIndex]
if ClockRate (PrimaryPM) ClockRate (ReplicaPM) then
Count ++;
end
end
end
return (Count)