Skip to content

Commit 7a0b0eb

Browse files
sshaderConvex, Inc.
authored andcommitted
Bump MAX_BACKEND_RPC_REQUEST_SIZE up (#34878)
Calling a mutation from an action with args near the 8MiB limit fails because we did not allocate enough buffer. Upping this to have more than enough buffer. GitOrigin-RevId: 11d7f07a1bedc62be87c1cdef39ab4cfab35681b
1 parent d674282 commit 7a0b0eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/common/src/knobs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,10 @@ pub static MAX_FUNRUN_RUN_FUNCTION_RESPONSE_MESSAGE_SIZE: LazyLock<usize> =
10751075
LazyLock::new(|| env_config("MAX_FUNRUN_RUN_FUNCTION_RESPONSE_MESSAGE_SIZE", 1 << 25)); // 32 MiB
10761076

10771077
/// The maximum size for Backend HTTP and GRPC action callbacks. This is 8MiB
1078-
/// for path and args, plus a buffer for the smaller fields This should also be
1079-
/// enough for vector and text search callbacks.
1078+
/// for path and args, plus a generous buffer for the smaller fields This should
1079+
/// also be enough for vector and text search callbacks.
10801080
pub static MAX_BACKEND_RPC_REQUEST_SIZE: LazyLock<usize> =
1081-
LazyLock::new(|| env_config("MAX_BACKEND_RPC_REQUEST_SIZE", (1 << 23) + 2000)); // 8 MiB + buffer
1081+
LazyLock::new(|| env_config("MAX_BACKEND_RPC_REQUEST_SIZE", 1 << 24)); // 16 MiB
10821082

10831083
/// The maximum size for Backend HTTP and GRPC action callbacks.
10841084
/// This needs to contain 8MiB for function result + 4MiB for log lines + 4MiB

0 commit comments

Comments
 (0)