feat: zombie parent, swap, and OOM metrics + Tdarr hardening #35

Merged
cal merged 2 commits from chore/30-investigate-manticore-zombies-swap into main 2026-04-03 02:05:47 +00:00
3 changed files with 5 additions and 6 deletions
Showing only changes of commit e58c5b8cc1 - Show all commits

View File

@ -90,7 +90,7 @@ zombie_parents() {
}
swap_mb() {
free | awk '\''/^Swap:/ {printf "%.0f", $3/1024}'\''
free | awk '\''/^Swap:/ {printf "%.0f", $3/1024; found=1} END {if (!found) print "0"}'\''
}
oom_events() {

View File

@ -1,9 +1,8 @@
#!/usr/bin/env bash
# test-audit-collectors.sh — validates homelab-audit.sh collector output format
#
# Extracts each collector function from the audit script's COLLECTOR_SCRIPT
# heredoc and runs it locally, checking that output matches the expected
# key=value format. Exits non-zero on first failure.
# Re-implements each collector function inline and runs it locally, checking
# that output matches the expected format. Exits non-zero on any failure.
set -euo pipefail

View File

@ -26,8 +26,6 @@ services:
container_name: tdarr-node
init: true
restart: unless-stopped
mem_limit: 28g
memswap_limit: 30g
environment:
- PUID=1000
- PGID=1000
@ -41,6 +39,8 @@ services:
- /mnt/NV2/tdarr-cache:/temp
deploy:
resources:
limits:
memory: 28g
reservations:
devices:
- driver: nvidia