This commit is contained in:
William Mantly 2016-05-05 01:01:24 -04:00
parent 923b6fdd78
commit 22905cf056

View File

@ -65,6 +65,7 @@ var startWorkers = function(clworker, stopPercent){
stopPercent = stopPercent || 81; stopPercent = stopPercent || 81;
console.log(clworker) console.log(clworker)
getFreeMem(clworker.ip, function(usedMemPercent, clworker){ getFreeMem(clworker.ip, function(usedMemPercent, clworker){
console.log(arguments)
if(usedMemPercent < 81 ){ if(usedMemPercent < 81 ){
var name = 'crunner-'+(Math.random()*100).toString().replace('.',''); var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
return lxc.startEphemeral(name, 'crunner0', clworker.ip, function(data){ return lxc.startEphemeral(name, 'crunner0', clworker.ip, function(data){