aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-12-12 15:27:14 -0800
committerGravatar GitHub <noreply@github.com>2016-12-12 15:27:14 -0800
commitb095c3906d19c5d5696517d20956c03f65d46bad (patch)
tree5161bc1674df37e3f4705b9df4ccdbaa5ec2e88a
parent5d60c7d7e6c8874a4545ce4dc7247122a9195563 (diff)
parent18b66a0df615447d86b44672e2fb34a9180da6df (diff)
Merge pull request #9078 from grpc/revert-8893-reduce_cq
Revert "Reduce memory bloat (each server cq is very expensive)"
-rw-r--r--include/grpc++/server_builder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h
index 2ac2f0a1ef..9252c6a63a 100644
--- a/include/grpc++/server_builder.h
+++ b/include/grpc++/server_builder.h
@@ -187,7 +187,7 @@ class ServerBuilder {
struct SyncServerSettings {
SyncServerSettings()
- : num_cqs(1),
+ : num_cqs(GPR_MAX(gpr_cpu_num_cores(), 4)),
min_pollers(1),
max_pollers(INT_MAX),
cq_timeout_msec(1000) {}