kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danburk...@apache.org
Subject [1/4] kudu git commit: rpc-bench: add ability to enable encryption
Date Wed, 05 Apr 2017 17:51:48 GMT
Repository: kudu
Updated Branches:
  refs/heads/master f4272eb5c -> 34310a8e9


rpc-bench: add ability to enable encryption

This adds a --enable-encryption flag for the benchmark which disables
the "negotiation-only" TLS optimization and enables SSL on the server.
This allows us to benchmark TLS-enabled RPCs.

Change-Id: Idf019185d3918b9262be19993c3c24975842e966
Reviewed-on: http://gerrit.cloudera.org:8080/6551
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: Kudu Jenkins
Reviewed-by: Dan Burkert <danburkert@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/055ea58b
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/055ea58b
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/055ea58b

Branch: refs/heads/master
Commit: 055ea58bf94e6fdc7df1902fcb73b288d6f7316b
Parents: f4272eb
Author: Todd Lipcon <todd@apache.org>
Authored: Tue Apr 4 12:57:40 2017 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Tue Apr 4 22:41:39 2017 +0000

----------------------------------------------------------------------
 src/kudu/rpc/rpc-bench.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/055ea58b/src/kudu/rpc/rpc-bench.cc
----------------------------------------------------------------------
diff --git a/src/kudu/rpc/rpc-bench.cc b/src/kudu/rpc/rpc-bench.cc
index 809697a..d569ea1 100644
--- a/src/kudu/rpc/rpc-bench.cc
+++ b/src/kudu/rpc/rpc-bench.cc
@@ -53,6 +53,9 @@ DEFINE_int32(server_reactors, 4,
 
 DEFINE_int32(run_seconds, 1, "Seconds to run the test");
 
+DECLARE_bool(rpc_encrypt_loopback_connections);
+DEFINE_bool(enable_encryption, false, "Whether to enable TLS encryption for rpc-bench");
+
 namespace kudu {
 namespace rpc {
 
@@ -70,7 +73,8 @@ class RpcBench : public RpcTestBase {
     n_server_reactor_threads_ = FLAGS_server_reactors;
 
     // Set up server.
-    StartTestServerWithGeneratedCode(&server_addr_);
+    FLAGS_rpc_encrypt_loopback_connections = FLAGS_enable_encryption;
+    StartTestServerWithGeneratedCode(&server_addr_, FLAGS_enable_encryption);
   }
 
   void SummarizePerf(CpuTimes elapsed, int total_reqs, bool sync) {
@@ -89,6 +93,7 @@ class RpcBench : public RpcTestBase {
 
     LOG(INFO) << "Worker threads:   " << FLAGS_worker_threads;
     LOG(INFO) << "Server reactors:  " << FLAGS_server_reactors;
+    LOG(INFO) << "Encryption:       " << FLAGS_enable_encryption;
     LOG(INFO) << "----------------------------------";
     LOG(INFO) << "Reqs/sec:         " << reqs_per_second;
     LOG(INFO) << "User CPU per req: " << user_cpu_micros_per_req << "us";


Mime
View raw message