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

Added parameter for changing executor

parent dd98e905
...@@ -5,4 +5,5 @@ firecracker* ...@@ -5,4 +5,5 @@ firecracker*
secrets.json secrets.json
grunt grunt
.clinic .clinic
rm_dummy.js rm_dummy.js
\ No newline at end of file metrics_gatherer.js
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"master_address": "localhost", "master_address": "localhost",
"grunt_host": "https://www.namandixit.net/lovecraftian_nightmares/grunt", "grunt_host": "https://www.namandixit.net/lovecraftian_nightmares/grunt",
"couchdb_host": "10.129.6.5:5984", "couchdb_host": "10.129.6.5:5984",
"env": "envTest.js",
"db": { "db": {
"function_meta": "serverless", "function_meta": "serverless",
"metrics": "metrics", "metrics": "metrics",
...@@ -27,7 +28,8 @@ ...@@ -27,7 +28,8 @@
"remove_worker": "removeWorker", "remove_worker": "removeWorker",
"response_rm_2_dm": "RESPONSE_RM_2_DM_DUMMY", "response_rm_2_dm": "RESPONSE_RM_2_DM_DUMMY",
"hscale": "hscale", "hscale": "hscale",
"log_channel": "LOG_COMMON" "log_channel": "LOG_COMMON",
"test": "test"
}, },
"autoscalar_metrics": { "autoscalar_metrics": {
"open_request_threshold": 100 "open_request_threshold": 100
...@@ -37,6 +39,6 @@ ...@@ -37,6 +39,6 @@
}, },
"speculative_deployment": true, "speculative_deployment": true,
"JIT_deployment": true, "JIT_deployment": true,
"aggressivity": 0.8, "aggressivity": 1,
"id_size": 20 "id_size": 20
} }
\ No newline at end of file
...@@ -51,7 +51,7 @@ function makeid(length) { ...@@ -51,7 +51,7 @@ function makeid(length) {
* @param {string Function Hash value} functionHash * @param {string Function Hash value} functionHash
*/ */
function generateExecutor(functionPath, 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 functionFile = fs.readFileSync(functionPath + functionHash)
let searchSize = "(resolve, reject) => {".length 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