stuff
This commit is contained in:
parent
b74a71efb4
commit
0e7ccf2637
@ -110,8 +110,8 @@ var startWorker = function(worker, stopPercent){
|
|||||||
if(usedMemPercent < stopPercent ){
|
if(usedMemPercent < stopPercent ){
|
||||||
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
|
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
|
||||||
return lxc.startEphemeral(name, 'crunner0', worker.ip, function(data){
|
return lxc.startEphemeral(name, 'crunner0', worker.ip, function(data){
|
||||||
|
|
||||||
if( !data.ip ) return setTimeout(startWorker(worker),0);
|
if( !data.ip ) return setTimeout(startWorker(worker),0);
|
||||||
|
console.log('started container')
|
||||||
|
|
||||||
worker.availContainers.push({
|
worker.availContainers.push({
|
||||||
ip: data.ip,
|
ip: data.ip,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user