Skip to content

Commit 8ac2dcc

Browse files
fix(access-logs): lower processed-marker TTL from 7d to 1d
Zero-byte dedup markers accumulated (500k+ files) and bloated the Docker build context, slowing image builds. ClickHouse insert dedup (by batch id) is the real safety net, so a 1-day retention window is safe. Bump to 1.5.3. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7b79f3e commit 8ac2dcc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "c3-celerity",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "C³ CELERITY - Management panel for Hysteria 2 nodes by Click Connect",
55
"keywords": [
66
"nodejs",

‎src/services/accessLogs/processService.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ const MAX_INFLATED_BYTES = 64 * 1024 * 1024; // 64 MB
3737
const PROCESS_INTERVAL_MS = 10 * 1000;
3838
const MAX_FILES_PER_RUN = 50;
3939

40-
// Keep processed dedup markers for a week: long enough to cover any agent retry
41-
// backoff, short enough to bound the marker directory.
42-
const PROCESSED_MARKER_TTL_MS = 7 * 24 * 60 * 60 * 1000;
40+
// Keep processed dedup markers for a day: long enough to cover any agent retry
41+
// backoff, short enough to keep the marker directory small. ClickHouse insert
42+
// dedup (by batch id) is the real safety net, so a short window is safe.
43+
const PROCESSED_MARKER_TTL_MS = 24 * 60 * 60 * 1000;
4344

4445
let running = false;
4546
let timer = null;

0 commit comments

Comments
 (0)