Skip to content

Commit a0fc880

Browse files
emmaling27Convex, Inc.
authored andcommitted
Set searchlight request/response limits to 8MiB (#41340)
GitOrigin-RevId: 5eba1a6ec627f8500c2d19ba1eb37e1df89f6a50
1 parent b7174f4 commit a0fc880

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
@@ -1175,6 +1175,10 @@ pub static MAX_BACKEND_PUBLIC_API_REQUEST_SIZE: LazyLock<usize> =
11751175
pub static MAX_SEARCHLIGHT_RESPONSE_SIZE: LazyLock<usize> =
11761176
LazyLock::new(|| env_config("MAX_SEARCHLIGHT_RESPONSE_SIZE", 1 << 23)); // 8 MiB
11771177

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

0 commit comments

Comments
 (0)