Skip to content
Snippets Groups Projects
Commit c578e44a authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

add some console messages to node qps worker

parent 8c839e83
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
'use strict'; 'use strict';
var console = require('console');
var worker_service_impl = require('./worker_service_impl'); var worker_service_impl = require('./worker_service_impl');
var grpc = require('../../../'); var grpc = require('../../../');
...@@ -48,6 +49,7 @@ function runServer(port) { ...@@ -48,6 +49,7 @@ function runServer(port) {
var address = '0.0.0.0:' + port; var address = '0.0.0.0:' + port;
server.bind(address, server_creds); server.bind(address, server_creds);
server.start(); server.start();
console.log('running QPS worker on %s', address);
return server; return server;
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
'use strict'; 'use strict';
var os = require('os'); var os = require('os');
var console = require('console');
var BenchmarkClient = require('./benchmark_client'); var BenchmarkClient = require('./benchmark_client');
var BenchmarkServer = require('./benchmark_server'); var BenchmarkServer = require('./benchmark_server');
...@@ -49,6 +50,7 @@ exports.runClient = function runClient(call) { ...@@ -49,6 +50,7 @@ exports.runClient = function runClient(call) {
switch (request.argtype) { switch (request.argtype) {
case 'setup': case 'setup':
var setup = request.setup; var setup = request.setup;
console.log('ClientConfig %j', setup);
client = new BenchmarkClient(setup.server_targets, client = new BenchmarkClient(setup.server_targets,
setup.client_channels, setup.client_channels,
setup.histogram_params, setup.histogram_params,
...@@ -118,6 +120,7 @@ exports.runServer = function runServer(call) { ...@@ -118,6 +120,7 @@ exports.runServer = function runServer(call) {
var stats; var stats;
switch (request.argtype) { switch (request.argtype) {
case 'setup': case 'setup':
console.log('ServerConfig %j', request.setup);
server = new BenchmarkServer('[::]', request.setup.port, server = new BenchmarkServer('[::]', request.setup.port,
request.setup.security_params); request.setup.security_params);
server.start(); server.start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment