ssh
This commit is contained in:
parent
d10c699145
commit
7e5fae983b
@ -156,7 +156,7 @@ router.post('/run/:ip?', function doRun(req, res, next){
|
|||||||
var startAll = function(){
|
var startAll = function(){
|
||||||
getFreeMem(function(usedMemPercent){
|
getFreeMem(function(usedMemPercent){
|
||||||
|
|
||||||
if(usedMemPercent < 85 ){
|
if(usedMemPercent < 81 ){
|
||||||
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
|
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');
|
||||||
return lxc.startEphemeral(name, 'crunner0', function(data){
|
return lxc.startEphemeral(name, 'crunner0', function(data){
|
||||||
ip2name[data.ip] = name;
|
ip2name[data.ip] = name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user