Research Article

MQHD: Dynamic Load Balancing Method for Energy-Aware Storage Systems

Algorithm 2

The MQHD algorithm.
(1)procedure LOADBALANCING
(2)whiledo
(3)  ifthen;
(4)  ;
(5)  ;
(6)  ;
(7)  ;
(8)  ;
(9)  
(10)  fordo
(11)   ifthen;
(12)  end for
(13)  ifthen
(14)   ifthen;
(15)   ;
(16)   ;
(17)   ;
(18)   ;
(19)   ;
(20)   ifthen
(21)    get the serial numbers of the HDUs for migration based on ;
(22)    migrage the HDUs selected for migration;
(23)   else
(24)    get the serial numbers of the HDUs for migration based on ;
(25)    migrage the HDUs selected for migration;
(26)   end if
(27)  end if
(28)end while
(29)end procedure