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
8217acb1
Commit
8217acb1
authored
May 15, 2020
by
Nilanjan Daw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added parameter for changing executor
parent
dd98e905
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
dispatch_system/.gitignore
dispatch_system/.gitignore
+2
-1
dispatch_system/constants.json
dispatch_system/constants.json
+4
-2
dispatch_system/dispatch_manager/lib.js
dispatch_system/dispatch_manager/lib.js
+1
-1
No files found.
dispatch_system/.gitignore
View file @
8217acb1
...
...
@@ -5,4 +5,5 @@ firecracker*
secrets.json
grunt
.clinic
rm_dummy.js
\ No newline at end of file
rm_dummy.js
metrics_gatherer.js
\ No newline at end of file
dispatch_system/constants.json
View file @
8217acb1
...
...
@@ -4,6 +4,7 @@
"master_address"
:
"localhost"
,
"grunt_host"
:
"https://www.namandixit.net/lovecraftian_nightmares/grunt"
,
"couchdb_host"
:
"10.129.6.5:5984"
,
"env"
:
"envTest.js"
,
"db"
:
{
"function_meta"
:
"serverless"
,
"metrics"
:
"metrics"
,
...
...
@@ -27,7 +28,8 @@
"remove_worker"
:
"removeWorker"
,
"response_rm_2_dm"
:
"RESPONSE_RM_2_DM_DUMMY"
,
"hscale"
:
"hscale"
,
"log_channel"
:
"LOG_COMMON"
"log_channel"
:
"LOG_COMMON"
,
"test"
:
"test"
},
"autoscalar_metrics"
:
{
"open_request_threshold"
:
100
...
...
@@ -37,6 +39,6 @@
},
"speculative_deployment"
:
true
,
"JIT_deployment"
:
true
,
"aggressivity"
:
0.8
,
"aggressivity"
:
1
,
"id_size"
:
20
}
\ No newline at end of file
dispatch_system/dispatch_manager/lib.js
View file @
8217acb1
...
...
@@ -51,7 +51,7 @@ function makeid(length) {
* @param {string Function Hash value} functionHash
*/
function
generateExecutor
(
functionPath
,
functionHash
)
{
let
input
=
fs
.
readFileSync
(
'
./repository/worker_env/env.js
'
)
let
input
=
fs
.
readFileSync
(
`./repository/worker_env/
${
constants
.
env
}
`
)
let
functionFile
=
fs
.
readFileSync
(
functionPath
+
functionHash
)
let
searchSize
=
"
(resolve, reject) => {
"
.
length
...
...
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