Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
c578e44a
Commit
c578e44a
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
add some console messages to node qps worker
parent
8c839e83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/node/performance/worker.js
+2
-0
2 additions, 0 deletions
src/node/performance/worker.js
src/node/performance/worker_service_impl.js
+3
-0
3 additions, 0 deletions
src/node/performance/worker_service_impl.js
with
5 additions
and
0 deletions
src/node/performance/worker.js
+
2
−
0
View file @
c578e44a
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/node/performance/worker_service_impl.js
+
3
−
0
View file @
c578e44a
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment