Commit 8aec2c81 authored by Nilanjan Daw's avatar Nilanjan Daw

JIT deployment support for conditional chains

parent 178f8a33
...@@ -32,6 +32,6 @@ ...@@ -32,6 +32,6 @@
"alpha": 0.7 "alpha": 0.7
}, },
"speculative_deployment": true, "speculative_deployment": true,
"JIT_deployment": true, "JIT_deployment": false,
"id_size": 20 "id_size": 20
} }
...@@ -526,7 +526,7 @@ function autoscalar() { ...@@ -526,7 +526,7 @@ function autoscalar() {
*/ */
async function speculative_deployment(req, runtime) { async function speculative_deployment(req, runtime) {
if (constants.speculative_deployment && req.headers['x-resource-id'] === undefined) { if (constants.speculative_deployment && req.headers['x-resource-id'] === undefined) {
console.log(functionBranchTree, req.params.id); // console.log(functionBranchTree, req.params.id);
if (functionBranchTree.has(req.params.id)) { if (functionBranchTree.has(req.params.id)) {
let branchInfo = functionBranchTree.get(req.params.id) let branchInfo = functionBranchTree.get(req.params.id)
......
...@@ -3,9 +3,11 @@ let db = new Map(), // queue holding request to be dispatched ...@@ -3,9 +3,11 @@ let db = new Map(), // queue holding request to be dispatched
functionToResource = new Map(), // a function to resource map. Each map contains a minheap of functionToResource = new Map(), // a function to resource map. Each map contains a minheap of
// resources associated with the function // resources associated with the function
workerNodes = new Map(), // list of worker nodes currently known to the DM workerNodes = new Map(), // list of worker nodes currently known to the DM
functionBranchTree = new Map() // a tree to store function branch predictions functionBranchTree = new Map(), // a tree to store function branch predictions
conditionProbabilityExpilict = new Map() // tree holding conditional probabilities for explicit chains
module.exports = { module.exports = {
db, functionBranchTree, functionToResource, workerNodes, resourceMap db, functionBranchTree, functionToResource, workerNodes, resourceMap,
conditionProbabilityExpilict
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment