Commit 8217acb1 authored by Nilanjan Daw's avatar Nilanjan Daw

Added parameter for changing executor

parent dd98e905
......@@ -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
......@@ -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
......@@ -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
......
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