Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xanadu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SYNERG
xanadu
Commits
8aec2c81
Commit
8aec2c81
authored
Apr 08, 2020
by
Nilanjan Daw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JIT deployment support for conditional chains
parent
178f8a33
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
36 deletions
+93
-36
dispatch_system/constants.json
dispatch_system/constants.json
+1
-1
dispatch_system/dispatch_manager/explicit_chain_handler.js
dispatch_system/dispatch_manager/explicit_chain_handler.js
+87
-32
dispatch_system/dispatch_manager/index.js
dispatch_system/dispatch_manager/index.js
+1
-1
dispatch_system/dispatch_manager/shared_structures.js
dispatch_system/dispatch_manager/shared_structures.js
+4
-2
No files found.
dispatch_system/constants.json
View file @
8aec2c81
...
@@ -32,6 +32,6 @@
...
@@ -32,6 +32,6 @@
"alpha"
:
0.7
"alpha"
:
0.7
},
},
"speculative_deployment"
:
true
,
"speculative_deployment"
:
true
,
"JIT_deployment"
:
tru
e
,
"JIT_deployment"
:
fals
e
,
"id_size"
:
20
"id_size"
:
20
}
}
dispatch_system/dispatch_manager/explicit_chain_handler.js
View file @
8aec2c81
This diff is collapsed.
Click to expand it.
dispatch_system/dispatch_manager/index.js
View file @
8aec2c81
...
@@ -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
)
...
...
dispatch_system/dispatch_manager/shared_structures.js
View file @
8aec2c81
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment