-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1773] improvement(server): Reduce chunkSize of gRPC Netty's PooledB…
…yteBufAllocator to reduce memory usage (#1780) ### What changes were proposed in this pull request? Introduce configs to reduce the chunkSize of the gRPC internal Netty's PooledByteBufAllocator to reduce memory usage on the server-side. When enabling Netty, the changes for gRPC internal Netty's configs will be as follows: `io.netty.allocator.pageSize`: 8192 -> 4096 (bytes) `io.netty.allocator.maxOrder`: 11 -> 3 `io.netty.allocator.smallCacheSize`: 128 -> 1024 Note: `chunkSize` = `pageSize` * 2^`maxOrder`, Thus, the `io.netty.allocator.chunkSize`: 2MB -> 32KB ### Why are the changes needed? For #1773. ### Does this PR introduce _any_ user-facing change? No. This PR will not change anything when using GRPC. It will only take effect when using GRPC_NETTY. Adds configs: `rss.rpc.netty.pageSize`, `rss.rpc.netty.maxOrder`, `rss.rpc.netty.smallCacheSize` ### How was this patch tested? Existing tests.
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters