feat: limit number of rows per log (#13763)

avoid DB explosion. This is a temp solution
This commit is contained in:
jif-oai
2026-03-06 18:51:42 +01:00
committed by GitHub
parent f891f516a5
commit c8f4b5bc1e
3 changed files with 170 additions and 12 deletions
+1
View File
@@ -61,6 +61,7 @@ mod threads;
// - one bucket per threadless (thread_id IS NULL) non-null process_uuid
// - one bucket for threadless rows with process_uuid IS NULL
const LOG_PARTITION_SIZE_LIMIT_BYTES: i64 = 10 * 1024 * 1024;
const LOG_PARTITION_ROW_LIMIT: i64 = 1_000;
#[derive(Clone)]
pub struct StateRuntime {