aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/grpc/server/grpc_server.h
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-03-02 15:50:11 +0300
committerdcherednik <dcherednik@ydb.tech>2023-03-02 15:50:11 +0300
commit495429833643392f7c357eb2b077fcf90696201e (patch)
treede7767f3db825470848815fc2dd887def11b527c /library/cpp/grpc/server/grpc_server.h
parentb0c0cfeece895dfee2397f7344920ccd90252cea (diff)
downloadydb-495429833643392f7c357eb2b077fcf90696201e.tar.gz
Feature flag to enable grpc memory quota.
Diffstat (limited to 'library/cpp/grpc/server/grpc_server.h')
-rw-r--r--library/cpp/grpc/server/grpc_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/grpc/server/grpc_server.h b/library/cpp/grpc/server/grpc_server.h
index 6da5076046..fb2726582c 100644
--- a/library/cpp/grpc/server/grpc_server.h
+++ b/library/cpp/grpc/server/grpc_server.h
@@ -67,6 +67,9 @@ struct TServerOptions {
//! Memory quota size for grpc server in bytes. Zero means unlimited.
DECLARE_FIELD(GRpcMemoryQuotaBytes, size_t, 0);
+ //! Enable Grpc memory quota feature.
+ DECLARE_FIELD(EnableGRpcMemoryQuota, bool, false);
+
//! How long to wait until pending rpcs are forcefully terminated.
DECLARE_FIELD(GRpcShutdownDeadline, TDuration, TDuration::Seconds(30));