Research Article

Improve Performance by a Fuzzy-Based Dynamic Replication Algorithm in Grid, Cloud, and Fog

Algorithm 2

EFRA placement algorithm (node i and file f).
Begin
  For each node i that has Storage Element (SE) in the current region do
   If FPi < T failurether and workloadi< T workloadThen
    Bestnodelist = add node i;
    Bestnodelist[i].NodeValue = FuzzyNodeValuFunction (i, f, CCi, NA, TLi,WLi);
   End If
  End For
  BestNodeList;  = sort the BestNodeList list in ascending order according to their node value
  If BestNodeList; ! = empty then
    BestPlace = select a node from top of the BestNodeList;
   Return BestPlace
  End If
End