Research Article

SRAF: A Service-Aware Resource Allocation Framework for VM Management in Mobile Data Networks

Algorithm 3

System scheduling algorithm.
(1)procedure CLASSIFICATION METHOD
(2)Uses the SCA in Algorithm 1 to classify ;
(3)Puts the into the corresponding line;
(4)End
(5)procedure MAIN
(6)Initializes basic VMs into two types, the high-type VM line and the normal-type line;
(7)while the system is running and in the beginning of an interval do
(8) Monitors , of every VM;
(9) Calls Algorithm 2 to determine the VM migration.
(10) Calls Horizontal-scaling algorithm; //see Algorithm 4
(11) Calls Vertical-scaling algorithm; //see Algorithm 5
(12)end while
(13)while ( is coming) do
(14)CLASSIFICATION METHOD;
(15)while there have tasks in the three lines do
(16) Schedules the tasks from the video-focus tasks line and file-focus tasks line on the high-type VM by the sharing mode;
(17) Schedules the normal task into normal-type VM;
(18)end while
(19)end while
(18)End