diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-03-02 15:50:11 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-03-02 15:50:11 +0300 |
commit | 495429833643392f7c357eb2b077fcf90696201e (patch) | |
tree | de7767f3db825470848815fc2dd887def11b527c /library/cpp/grpc/server/grpc_server.h | |
parent | b0c0cfeece895dfee2397f7344920ccd90252cea (diff) | |
download | ydb-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.h | 3 |
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)); |