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

avoid DB explosion. This is a temp solution
This commit is contained in:
jif-oai authored and GitHub committed 2026-03-06 18:51:42 +01:00
1 parent f891f516a5
commit c8f4b5bc1e
3 files changed
+170 -12

No files matched your search

+2 -2
View File
@@ -41,8 +41,8 @@ use crate::LogEntry;
use crate::StateRuntime;
const LOG_QUEUE_CAPACITY: usize = 512;
const LOG_BATCH_SIZE: usize = 64;
const LOG_FLUSH_INTERVAL: Duration = Duration::from_millis(250);
const LOG_BATCH_SIZE: usize = 128;
const LOG_FLUSH_INTERVAL: Duration = Duration::from_secs(2);
const LOG_RETENTION_DAYS: i64 = 90;
pub struct LogDbLayer {