info
This commit is contained in:
parent
d4214cbf1d
commit
360f2c591d
@ -47,7 +47,7 @@ var runner = function(req, res, container){
|
|||||||
var httpOptions = {
|
var httpOptions = {
|
||||||
url: 'http://' + container.worker.ip,
|
url: 'http://' + container.worker.ip,
|
||||||
headers: {
|
headers: {
|
||||||
host: container.name
|
Host: container.name
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
code: req.body.code
|
code: req.body.code
|
||||||
@ -63,7 +63,7 @@ var runner = function(req, res, container){
|
|||||||
};
|
};
|
||||||
|
|
||||||
var startWorkers = function(clworker, stopPercent){
|
var startWorkers = function(clworker, stopPercent){
|
||||||
stopPercent = stopPercent || 20;
|
stopPercent = stopPercent || 30;
|
||||||
console.log(clworker)
|
console.log(clworker)
|
||||||
getFreeMem(clworker.ip, function(usedMemPercent){
|
getFreeMem(clworker.ip, function(usedMemPercent){
|
||||||
console.log(arguments)
|
console.log(arguments)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user