Research Article
Coarse-Grain QoS-Aware Dynamic Instance Provisioning for Interactive Workload in the Cloud
Algorithm 2
The instance provisioning algorithm.
Input: VP_table; | Output: ; is the number of RIS instance, and is the number | of MIS instance in phase .} | (1) for to do | (2) for MIN_NUM to MAX_NUM do | (3) if VP_table[][] and VP_table[][] then | (4) ; | (5) break; | (6) end if | (7) end for | (8) end for | (9) ; | (10) ; | (11) for to do | (12) ; | (13) ; | (14) if then | (15) ; | (16) end if | (17) end for | (18) for to do | (19) ; | (20) end for |
|