Skip to content

Commit

Permalink
Merge pull request #550 from noobaa/eran_alpha_tcp
Browse files Browse the repository at this point in the history
TCP mode
  • Loading branch information
tamireran committed Oct 13, 2015
2 parents 84e8639 + b86d71d commit 53382fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
4 changes: 3 additions & 1 deletion src/client/nb_nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ nb_api.factory('nbNodes', [
tier: 'nodes',
prod: true,
bucket: 'files',
root_path: './agent_storage/'
root_path: './agent_storage/',
port: 8888,
secure_port: 9999
};

config_json.address = 'wss://noobaa.local:' + nbSystem.system.ssl_port;
Expand Down
2 changes: 2 additions & 0 deletions src/deploy/NVA_build/env.orig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ PORT=8080
SSL_PORT=8443
ON_PREMISE=true

AGENTS_OVER_WS=true

# address means the address of the server as reachable from the internet
ADDRESS=http://localhost
COOKIE_SECRET=iwqhofbq27ew5jbJb3cq87bukgyaw3or8
Expand Down
27 changes: 14 additions & 13 deletions src/server/web_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,20 @@ console.log('loading .env file ( no foreman ;)');
dotenv.load();


var numCPUs = Math.ceil(require('os').cpus().length / 2);
if (cluster.isMaster) {
// Fork MD Servers
for (var i = 0; i < numCPUs; i++) {
console.warn('Spawning MD Server', i + 1);
cluster.fork();
}

cluster.on('exit', function(worker, code, signal) {
console.log('MD Server ' + worker.process.pid + ' died');
});
return;
}
// Temporary removed - causes issues with upgrade.
//var numCPUs = Math.ceil(require('os').cpus().length / 2);
// if (cluster.isMaster) {
// // Fork MD Servers
// for (var i = 0; i < numCPUs; i++) {
// console.warn('Spawning MD Server', i + 1);
// cluster.fork();
// }
//
// cluster.on('exit', function(worker, code, signal) {
// console.log('MD Server ' + worker.process.pid + ' died');
// });
// return;
// }

dbg.set_process_name('WebServer');

Expand Down

0 comments on commit 53382fb

Please sign in to comment.