Research Article
Dynamic Resource Provisioning on Fog Landscapes
Algorithm 1
Recursive service deployment algorithm.
1: procedure DEPLOY(, , , ) return | |
2: if is deployed completely then | |
3: return | |
4: else | |
5: if Can-Deploy(, , , ) == true then | |
6: for in Available-Services do | |
7: for in Available-Nodes(, ) do | |
8: Finding the best candidate(, ) | |
9: (, , ) | |
10: if Has-Deployment == true then | |
11: return Deploy(, , , ) | |
12: else | |
13: return Deploy(, , , Next()) | |
14: else | |
15: return Deploy(, , , Next()) |