Skip to content

Commit 14c00e3

Browse files
emmaling27Convex, Inc.
authored andcommitted
Increase searchlight response sizes from 4MiB to 8MiB (#41187)
GitOrigin-RevId: 42c2b5fa7c61aafc8f0907e12fef3f0579f1372b
1 parent c0427ac commit 14c00e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/common/src/knobs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,10 @@ pub static MAX_BACKEND_RPC_HTTP_CHUNK_SIZE: LazyLock<usize> =
11711171
pub static MAX_BACKEND_PUBLIC_API_REQUEST_SIZE: LazyLock<usize> =
11721172
LazyLock::new(|| env_config("MAX_BACKEND_PUBLIC_API_REQUEST_SIZE", (1 << 24) + 2000)); // 16 MiB
11731173

1174+
/// The maximum size for GRPC responses from searchlight.
1175+
pub static MAX_SEARCHLIGHT_RESPONSE_SIZE: LazyLock<usize> =
1176+
LazyLock::new(|| env_config("MAX_SEARCHLIGHT_RESPONSE_SIZE", 1 << 23)); // 8 MiB
1177+
11741178
/// Background database workers wake up periodically, check to see if something
11751179
/// has changed, then either go back to sleep or do work. Most workers determine
11761180
/// if something has changed at least in part by comparing the number of commits

0 commit comments

Comments
 (0)