Skip to content

Ignore Jaeger file cache in Discord memory alerts#94

Merged
patroza merged 1 commit into
fork/discordfrom
t3code/jaeger-anon-memory-alert-overlay
Jul 26, 2026
Merged

Ignore Jaeger file cache in Discord memory alerts#94
patroza merged 1 commit into
fork/discordfrom
t3code/jaeger-anon-memory-alert-overlay

Conversation

@patroza

@patroza patroza commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • read total, anonymous, and file-backed RSS from proc status
  • alert for Jaeger only after anonymous memory stays at or above 2 GiB for five watchdog ticks
  • keep the existing 768 MiB total-RSS policy for ordinary processes and preserve sustained CPU alerts
  • report anonymous memory, file cache, total RSS, and the applied threshold in Discord
  • fall back to total RSS at the same 2 GiB threshold if the kernel omits the RSS breakdown

The deployed Badger backend, 14-day retention, and 4 GiB container ceiling remain unchanged. This child PR targets the canonical Discord overlay PR #80.

Verification

  • vp test run apps/discord-bot/src/features/Alerts.test.ts (17 passed)
  • node_modules/.bin/tsgo --noEmit -p apps/discord-bot/tsconfig.json
  • vp lint on the changed files
  • vp fmt --check on the changed files
  • git diff --check

@patroza
patroza merged commit 563b97b into fork/discord Jul 26, 2026
1 check passed
@patroza
patroza deleted the t3code/jaeger-anon-memory-alert-overlay branch July 26, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant