Skip to content

Commit 19a4005

Browse files
committed
fix(orchestration): bound decompressed publish bodies at 320 MiB
A parsed snapshot holds about 7.6 times its JSON size on the server, so a body just under 512 MiB peaked at 3.8 GiB RSS. 320 MiB keeps four times the headroom of a 10,000-model project with column lineage.
1 parent d10bd28 commit 19a4005

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎crates/sqlbuild-orchestration/src/api/constants.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Shared HTTP transport bounds for the server and native clients.
22
33
pub const BODY_BYTES: usize = 64 * 1024 * 1024;
4-
/// A gzip request body may decompress to at most this many bytes before it is refused.
5-
pub(crate) const DECOMPRESSED_BODY_BYTES: usize = 512 * 1024 * 1024;
4+
/// A gzip body may decompress to this many bytes; a parsed snapshot holds about 7.6 times its JSON size.
5+
pub(crate) const DECOMPRESSED_BODY_BYTES: usize = 320 * 1024 * 1024;
66
pub(crate) const GZIP_ENCODING: &str = "gzip";
77
pub(crate) const IDENTITY_ENCODING: &str = "identity";
88
pub(crate) const JSON_MEDIA_TYPE: &str = "application/json";

0 commit comments

Comments
 (0)