info
This commit is contained in:
parent
d23f1b91d1
commit
d4214cbf1d
@ -63,7 +63,7 @@ var runner = function(req, res, container){
|
|||||||
};
|
};
|
||||||
|
|
||||||
var startWorkers = function(clworker, stopPercent){
|
var startWorkers = function(clworker, stopPercent){
|
||||||
stopPercent = stopPercent || 40;
|
stopPercent = stopPercent || 20;
|
||||||
console.log(clworker)
|
console.log(clworker)
|
||||||
getFreeMem(clworker.ip, function(usedMemPercent){
|
getFreeMem(clworker.ip, function(usedMemPercent){
|
||||||
console.log(arguments)
|
console.log(arguments)
|
||||||
@ -165,8 +165,8 @@ router.post('/run/:ip?', function doRun(req, res, next){
|
|||||||
if(container){
|
if(container){
|
||||||
return runner(req, res, container);
|
return runner(req, res, container);
|
||||||
}else{
|
}else{
|
||||||
container = availContainers.splice(0,1);
|
container = availContainers.splice(0,1)[0];
|
||||||
console.log(container[0])
|
console.log(container)
|
||||||
label2container[container.worker.name+':'+container.name] = container;
|
label2container[container.worker.name+':'+container.name] = container;
|
||||||
return runner(req, res, container);
|
return runner(req, res, container);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user