Skip to content

Commit

Permalink
Stop worrying about 1 second deadline as a fatal problem
Browse files Browse the repository at this point in the history
Also fix reporter
  • Loading branch information
vjpai committed Jun 8, 2015
1 parent 372fd87 commit d9c7e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/cpp/qps/client_async.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ class AsyncClient : public Client {
}
if ((closed_loop_ || !rpc_deadlines_[thread_idx].empty()) &&
grpc_time_source::now() > deadline) {
// we have missed some 1-second deadline, which is too much
gpr_log(GPR_INFO, "Missed an RPC deadline, giving up");
return false;
// we have missed some 1-second deadline, which is worth noting
gpr_log(GPR_INFO, "Missed an RPC deadline");
// Don't give up, as there might be some truly heavy tails
}
if (got_event) {
ClientRpcContext* ctx = ClientRpcContext::detag(got_tag);
Expand Down
4 changes: 2 additions & 2 deletions test/cpp/qps/qps_test_openloop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void RunQPS() {
client_config.set_load_type(POISSON);
client_config.mutable_load_params()->
mutable_poisson()->set_offered_load(10000.0);

ServerConfig server_config;
server_config.set_server_type(ASYNC_SERVER);
server_config.set_enable_ssl(false);
Expand All @@ -70,7 +70,7 @@ static void RunQPS() {
const auto result =
RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK, -2);

GetReporter()->ReportQPSPerCore(*result, server_config);
GetReporter()->ReportQPSPerCore(*result);
GetReporter()->ReportLatency(*result);
}

Expand Down

0 comments on commit d9c7e7e

Please sign in to comment.