Last active
September 8, 2017 02:52
-
-
Save duytai/b748d88b0a66fb71cefed1f397528a08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"PT":1, | |
"TN":1, | |
"epsilon":1, | |
"ALPHA":1, | |
"BETA":1, | |
"GAMMA":1, | |
// apps property contains a list of applications. In this scenario, there is only one application | |
"apps":[ | |
// appIndex = 0 | |
{ | |
"deadline":19, | |
// tasks properties contains a list of tasks belonged to one application. In this scenario, there are 4 tasks | |
"tasks":[ | |
// taskIndex = 0 | |
{ | |
"cpu":315, | |
"deadline":19 | |
}, | |
// taskIndex = 1 | |
{ | |
"cpu":153, | |
"deadline":19 | |
}, | |
// taskIndex = 2 | |
{ | |
"cpu":291, | |
"deadline":19 | |
}, | |
// taskIndex = 3 | |
{ | |
"cpu":361, | |
"deadline":19 | |
}, | |
// taskIndex = 4 | |
{ | |
"cpu":319, | |
"deadline":19 | |
} | |
] | |
} | |
], | |
// node property contains a list of nodes in network. f is a fog cell, F is a fog orchestration node, N is a neighbor, R is a cloud. | |
// in this scenario, there are 2 fog cells, 1 fog orchestration, 1 neighbor and 1 cloud | |
"nodes":[ | |
// nodeIndex = 0 | |
{ | |
"type":"f", | |
"cpu":254, | |
"delay":8, | |
"pIdle":200, | |
"pMax":600 | |
}, | |
// nodeIndex = 1 | |
{ | |
"type":"f", | |
"cpu":254, | |
"delay":8, | |
"pIdle":200, | |
"pMax":600 | |
}, | |
// nodeIndex = 2 | |
{ | |
"type":"F", | |
"cpu":431, | |
"delay":0, | |
"pIdle":500, | |
"pMax":100 | |
}, | |
// nodeIndex = 3 | |
{ | |
"type":"N", | |
"cpu":0, | |
"delay":16, | |
"pIdle":0, | |
"pMax":0 | |
}, | |
// nodeIndex = 4 | |
{ | |
"type":"R", | |
"cpu":0, | |
"delay":15, | |
"pIdle":0, | |
"pMax":0 | |
} | |
], | |
"status":"Optimal", | |
// max property is the result of objective function, after the resource provisioning plan is found. | |
"max":5, | |
// node response provides the response time of a task if it is placed in a paticular node, for example if a task X is placed | |
// in node f, then the response of of task X will be 17 secs | |
"nodeResponses":[ | |
17, // node f | |
17, // node f | |
4.338747099767982, // node F | |
35, // Neighbor | |
30 // Cloud | |
], | |
// solutions property contains of list of tasks and their corresponding places, response times. | |
// - taskIndex refers to the index of a task in the task list, start from 0, for example: task 1 will be {"cpu":153,"deadline":19}, | |
// - appIndex refers to the index of an application in the application list, start from 0 | |
// - nodeType refers to type of a node in the network for example F is fog orchestration node. | |
// - nodeIndex refers to the index of a node in the node list, for example nodeIndex = 2 is a fog orchestration node | |
// - response refers to response time of a paticular task | |
"solutions":[ | |
{ | |
"taskIndex":0, | |
"appIndex":0, | |
"nodeType":"F", | |
"nodeIndex":2, | |
"response":4.338747099767982 | |
}, | |
{ | |
"taskIndex":1, | |
"appIndex":0, | |
"nodeType":"F", | |
"nodeIndex":2, | |
"response":4.338747099767982 | |
}, | |
{ | |
"taskIndex":2, | |
"appIndex":0, | |
"nodeType":"F", | |
"nodeIndex":2, | |
"response":4.338747099767982 | |
}, | |
{ | |
"taskIndex":3, | |
"appIndex":0, | |
"nodeType":"F", | |
"nodeIndex":2, | |
"response":4.338747099767982 | |
}, | |
{ | |
"taskIndex":4, | |
"appIndex":0, | |
"nodeType":"F", | |
"nodeIndex":2, | |
"response":4.338747099767982 | |
} | |
], | |
// appResponses property contains response times of a list of applications, in this scenario, the is only one app | |
"appResponses":[ | |
4.338747099767982 | |
], | |
// energy property is energy consumption in a fog landscape | |
"energy":433.8747099767982, | |
"isValid":true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment