Research Article
A Novel Deployment Method for Communication-Intensive Applications in Service Clouds
Algorithm 2
Offline deployment.
Input: | : The set of services of an application | : The set of candidate cloud nodes | LOOP: The number of loops, that is, migration times | (1) begin | (2) while LOOP > 0 and ; | (3) = 0; | (4) for all | (5) for each service deployed in | (6) Calculate current; | (7) Calculate , of ; | (8) if < current − | (9) = current − ; | (10) = ; | (11) = ; | (12) = ; | (13) end if | (14) end for | (15) end for | (16) if 0 | (17) Migrate from to ; | (18) end if | (19) LOOP- -; | (20) end while | (21) end |
|